图像标注
This commit is contained in:
parent
e3945fcd05
commit
fbcd2c48ac
|
|
@ -5,13 +5,16 @@ import com.bonus.business.domain.AlgorithmVo;
|
|||
import com.bonus.business.domain.UserOperaVo;
|
||||
import com.bonus.common.core.controller.BaseController;
|
||||
import com.bonus.common.core.domain.AjaxResult;
|
||||
import com.bonus.common.core.page.TableDataInfo;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 图像标注
|
||||
|
|
@ -25,6 +28,14 @@ public class ImageCaptionController extends BaseController {
|
|||
private ImageCaptionService service;
|
||||
|
||||
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(UserOperaVo config)
|
||||
{
|
||||
startPage();
|
||||
// List<SysConfig> list = configService.selectConfigList(config);
|
||||
return getDataTable(null);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 确认数据
|
||||
|
|
@ -53,7 +64,7 @@ public class ImageCaptionController extends BaseController {
|
|||
return service.getSelected(vo);
|
||||
}
|
||||
/**
|
||||
* 新增图片标注
|
||||
* 侧边栏历史对话
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getImageList")
|
||||
|
|
@ -62,7 +73,7 @@ public class ImageCaptionController extends BaseController {
|
|||
}
|
||||
|
||||
/**
|
||||
* 查询历史对话数据
|
||||
* 侧边栏历史对话-详情
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getImageListDetails")
|
||||
|
|
|
|||
|
|
@ -58,9 +58,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<update id="updateImage">
|
||||
update tb_upload_file set is_active=1
|
||||
where id in
|
||||
<foreach collection="list" item="item" close=")" open="(" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
<foreach collection="list" item="item" close=")" open="(" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</update>
|
||||
<select id="getImageList" resultType="com.bonus.business.domain.UserOperaVo">
|
||||
select tuo.id, tuo.type, tuo.oper_name operaName,
|
||||
|
|
@ -76,7 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</if>
|
||||
</select>
|
||||
<select id="getImageListDetails" resultType="com.bonus.file.vo.UploadFileVo">
|
||||
select file.id ,
|
||||
select file.id imageId,
|
||||
file.algorithm_id algorithmId, file.original_name originalName,
|
||||
file.file_path filePath,
|
||||
file.bucket_name bucketName, file.file_name fileName,
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import lombok.Data;
|
|||
|
||||
@Data
|
||||
public class UploadFileVo {
|
||||
|
||||
private String imageId;
|
||||
/**
|
||||
* 图片名称
|
||||
*/
|
||||
|
|
|
|||
Reference in New Issue