|
|
@@ -7,6 +7,7 @@ import com.aivfo.business.manage.entity.vo.resource.picture.*;
|
|
|
import com.aivfo.business.manage.pc.manage.resource.ResourceManage;
|
|
|
import com.aivfo.el.start.core.api.R;
|
|
|
import com.aivfo.el.starter.base.Result;
|
|
|
+import com.aivfo.log.annotation.OperateLog;
|
|
|
import com.aivfo.web.core.common.annotation.NoToken;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -43,6 +44,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 11:53
|
|
|
**/
|
|
|
@PostMapping("/getPicturesByRecordId")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-获取所有图层视频及清晰图层图片")
|
|
|
@ApiOperation(value = "患者管理-详情-获取所有图层视频及清晰图层图片")
|
|
|
@Deprecated
|
|
|
public Result<List<ResourceListVO>> getPicturesByRecordId(@Validated @RequestBody PictureAndVideoQueryDTO dto) {
|
|
|
@@ -56,6 +58,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 11:53
|
|
|
**/
|
|
|
@PostMapping("/switchVideoPictureLayers")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-视频切换图层(获取所有图片)")
|
|
|
@ApiOperation(value = "患者管理-详情-视频切换图层(获取所有图片)")
|
|
|
@Deprecated
|
|
|
public Result<List<SwitchVideoPictureLayerVO>> switchVideoPictureLayers(@Validated @RequestBody SwitchVideoPictureLayerDTO dto) {
|
|
|
@@ -72,6 +75,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 11:53
|
|
|
**/
|
|
|
@PostMapping("/getRecordDetail")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-获取所有图层视频及视频时间轴")
|
|
|
@ApiOperation(value = "患者管理-详情-获取所有图层视频及视频时间轴")
|
|
|
public Result<List<EmbryoRecordDetailResourceVO>> getRecordDetail(@Validated @RequestBody PictureAndVideoQueryDTO dto) {
|
|
|
return R.succeed(resourceManage.getRecordDetail(dto));
|
|
|
@@ -84,6 +88,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 11:53
|
|
|
**/
|
|
|
@PostMapping("/switchVideoLayerByPicture")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-视频切换图层(获取单张图片地址)")
|
|
|
@ApiOperation(value = "患者管理-详情-视频切换图层(获取单张图片地址)")
|
|
|
public Result<String> switchVideoLayerByPicture(@Validated @RequestBody SwitchVideoLayerByPictureDTO dto) {
|
|
|
return R.succeed(resourceManage.switchVideoLayerByPicture(dto));
|
|
|
@@ -96,6 +101,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 11:53
|
|
|
**/
|
|
|
@PostMapping("/getImageInfo")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-获取单张图片信息")
|
|
|
@ApiOperation(value = "患者管理-详情-获取单张图片信息")
|
|
|
public Result<ImageInfoVO> getImageInfo(@Validated @RequestBody SwitchVideoLayerByPictureDTO dto) {
|
|
|
return R.succeed(resourceManage.getImageInfo(dto));
|
|
|
@@ -108,6 +114,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 11:53
|
|
|
**/
|
|
|
@PostMapping("/getVideoTimeLine")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-视频切换图层(获取时间轴)")
|
|
|
@ApiOperation(value = "患者管理-详情-视频切换图层(获取时间轴)")
|
|
|
public Result<List<VideoLinePictureVO>> getVideoTimeLine(@Validated @RequestBody SwitchVideoLayerDTO dto) {
|
|
|
return R.succeed(resourceManage.getVideoTimeLine(dto));
|
|
|
@@ -122,6 +129,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 11:53
|
|
|
**/
|
|
|
@PostMapping("/getEmbryosLastPictures")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-胚胎标记详情-获取指定胚胎最新图片")
|
|
|
@ApiOperation(value = "患者管理-胚胎标记详情-获取指定胚胎最新图片")
|
|
|
public Result<List<PictureVO>> getEmbryosLastPictures(@Validated @RequestBody RecordPictureDTO dto) {
|
|
|
return R.succeed(resourceManage.getEmbryosLastPictures(dto));
|
|
|
@@ -134,6 +142,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@PostMapping("/getSourcePictures")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-图片查看(获取原图)")
|
|
|
@ApiOperation(value = "患者管理-详情-图片查看(获取原图)")
|
|
|
public Result<List<SourcePictureVO>> getPictures(@Validated @RequestBody PictureQuerySourceDTO pictureListDTO) {
|
|
|
return R.succeed(resourceManage.getSourcePictures(pictureListDTO));
|
|
|
@@ -146,6 +155,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@PostMapping("/getSourcePicturesByPage")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-图片查看(获取原图)分页")
|
|
|
@ApiOperation(value = "患者管理-详情-图片查看(获取原图)分页")
|
|
|
public Result<Page<SourcePictureVO>> getSourcePicturesByPage(@Validated @RequestBody PictureQuerySourcePageDTO pictureListDTO) {
|
|
|
return R.succeed(resourceManage.pageQuerySourcePictures(pictureListDTO));
|
|
|
@@ -158,6 +168,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@PostMapping("/getSourcePicturesTotalLayer")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-获取原图最大层数")
|
|
|
@ApiOperation(value = "患者管理-详情-获取原图最大层数")
|
|
|
public Result<Integer> getSourcePicturesTotalLayer(@Validated @RequestBody PictureQuerySourcePageDTO pictureListDTO) {
|
|
|
return R.succeed(resourceManage.getSourcePicturesTotalLayer(pictureListDTO));
|
|
|
@@ -170,6 +181,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@PostMapping("/getPictures")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-图片查看(获取抠图)")
|
|
|
@ApiOperation(value = "患者管理-详情-图片查看(获取抠图)")
|
|
|
public Result<List<PictureViewVO>> getPictures(@Validated @RequestBody PictureViewDTO pictureViewDTO) {
|
|
|
return R.succeed(resourceManage.getPictures(pictureViewDTO));
|
|
|
@@ -182,6 +194,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@PostMapping("/getPicturesByPage")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-图片分页查看")
|
|
|
@ApiOperation(value = "患者管理-详情-图片分页查看")
|
|
|
@Deprecated
|
|
|
public Result<Page<PictureVO>> pageQueryPictures(@Validated @RequestBody PictureQueryDTO pictureListDTO) {
|
|
|
@@ -190,6 +203,7 @@ public class ResourceController {
|
|
|
|
|
|
|
|
|
@PostMapping("/getAutofocusPictures")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "患者管理-详情-对焦预览")
|
|
|
@ApiOperation(value = "患者管理-详情-对焦预览")
|
|
|
public Result<FocusPreviewVO> getAutofocusPictures(@Validated @RequestBody FocusPreviewQueryDTO focusPreviewQueryDTO) {
|
|
|
return R.succeed(resourceManage.getAutofocusPictures(focusPreviewQueryDTO));
|
|
|
@@ -199,6 +213,7 @@ public class ResourceController {
|
|
|
// =============================视频图片下载部分=============================
|
|
|
|
|
|
@GetMapping("/downloadFocusPicture")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "下载对焦图片")
|
|
|
@ApiOperation(value = "下载对焦图片")
|
|
|
@NoToken
|
|
|
public void downloadFocusPicture(FocusPreviewQueryDTO focusPreviewQueryDTO, HttpServletRequest request, HttpServletResponse response) {
|
|
|
@@ -213,6 +228,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@GetMapping("/downloadPicture")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "下载选中扣图-单张")
|
|
|
@ApiOperation(value = "下载选中扣图-单张")
|
|
|
public void downloadPicture(@Validated PictureSelectExportDTO dto, HttpServletRequest request, HttpServletResponse response) {
|
|
|
resourceManage.downloadPicture(dto, request, response);
|
|
|
@@ -225,6 +241,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@GetMapping("/downloadSourcePicture")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "下载选中原图-单张")
|
|
|
@ApiOperation(value = "下载选中原图-单张")
|
|
|
public void downloadSourcePicture(@Validated PictureSelectExportDTO dto, HttpServletRequest request, HttpServletResponse response) {
|
|
|
resourceManage.downloadSourcePicture(dto, request, response);
|
|
|
@@ -237,6 +254,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@GetMapping("/downloadSelectPictures")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "下载选中图片-压缩包")
|
|
|
@ApiOperation(value = "下载选中图片-压缩包")
|
|
|
public void downloadSelectPictures(@Validated @RequestBody PictureSelectExportDTO dto, HttpServletRequest request, HttpServletResponse response) {
|
|
|
resourceManage.downloadSelectPictures(dto, request, response);
|
|
|
@@ -249,6 +267,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@GetMapping("/downloadPictures")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "下载指定胚胎-指定图层所有图片")
|
|
|
@ApiOperation(value = "下载指定胚胎-指定图层所有图片")
|
|
|
public void downloadPictures(@Validated PictureExportDTO dto, HttpServletRequest request, HttpServletResponse response) {
|
|
|
resourceManage.downloadPictures(dto, request, response);
|
|
|
@@ -262,6 +281,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@GetMapping("/downloadSourcePictures")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "下载源图")
|
|
|
@ApiOperation(value = "下载源图")
|
|
|
public void downloadSourcePictures(@Validated @RequestBody SourcePictureExportDTO dto, HttpServletRequest request, HttpServletResponse response) {
|
|
|
resourceManage.downloadSourcePictures(dto, request, response);
|
|
|
@@ -274,18 +294,21 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@GetMapping("/downloadVideos")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "下载指定胚胎视频- 指定图层")
|
|
|
@ApiOperation(value = "下载指定胚胎视频- 指定图层")
|
|
|
public void downloadVideos(@Validated VideoExportDTO dto, HttpServletRequest request, HttpServletResponse response) {
|
|
|
resourceManage.downloadVideos(dto, request, response);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/download")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "下载")
|
|
|
@NoToken
|
|
|
public void download(HttpServletRequest request, HttpServletResponse response) {
|
|
|
resourceManage.download(request, response);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/cleanData")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "清理数据")
|
|
|
@NoToken
|
|
|
public void cleanData() {
|
|
|
String tlSn = "";
|
|
|
@@ -301,6 +324,7 @@ public class ResourceController {
|
|
|
* @date 2023/7/12 13:26
|
|
|
**/
|
|
|
@GetMapping("/exportPictures")
|
|
|
+ @OperateLog(module = "设备数据接口", operation = "导出图片")
|
|
|
@ApiOperation(value = "导出图片")
|
|
|
public void exportPictures(@Validated PictureBatchExportDTO dto, HttpServletRequest request, HttpServletResponse response) {
|
|
|
resourceManage.exportPictures(dto, request, response);
|