From 1d42efe4cbd6b1028a28ff7f3ef2b3d721051c2f Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期四, 26 九月 2024 13:58:24 +0800 Subject: [PATCH] fix : 新增修改车数日志 --- src/main/java/com/boying/controller/FileInfoController.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/boying/controller/FileInfoController.java b/src/main/java/com/boying/controller/FileInfoController.java index 09514f8..a6caf79 100644 --- a/src/main/java/com/boying/controller/FileInfoController.java +++ b/src/main/java/com/boying/controller/FileInfoController.java @@ -6,6 +6,8 @@ import com.boying.service.FileInfoService; import io.lettuce.core.dynamic.annotation.Param; import io.swagger.models.auth.In; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; @@ -17,6 +19,7 @@ @RestController @RequestMapping("ffzf/fileinfo") @RequiredArgsConstructor +@Tag(description = "ffzf/fileinfo" , name = "鏂囦欢鎺ュ彛锛堝凡搴熷純锛�" ) public class FileInfoController { private final FileInfoService fileInfoService; @@ -26,12 +29,14 @@ * @Param downloadPath 鏂囦欢璺緞 */ @GetMapping("/download/downloadZip") + @Operation(summary = "涓嬭浇zip" , description = "涓嬭浇zip" ) public void downloadZip(@Param("downloadPath") String downloadPath, HttpServletRequest request, HttpServletResponse response) { //涓嬭浇鍥剧墖 String down = fileInfoService.downloadPathFile(downloadPath, request, response); } @PostMapping("/download/downloadZips") + @Operation(summary = "涓嬭浇澶氫釜zip" , description = "涓嬭浇澶氫釜zip" ) public void downloadZips(String fileIds, HttpServletRequest request, HttpServletResponse response) { List<FileInfo> fileInfoList = new ArrayList<>(); if(fileIds.contains(",")){ @@ -49,17 +54,20 @@ fileInfoService.downForZip(fileInfoList, request, response); } @PostMapping("/download/downloadPng") + @Operation(summary = "涓嬭浇鍥剧墖" , description = "涓嬭浇鍥剧墖" ) public void downloadPng(String fileId, HttpServletRequest request, HttpServletResponse response) { FileInfo byId = fileInfoService.getById(Integer.parseInt(fileId)); fileInfoService.downloadPng(byId,request,response); } @GetMapping("/showImg/{filename}") + @Operation(summary = "鏍规嵁璺緞棰勮鍥剧墖" , description = "鏍规嵁璺緞棰勮鍥剧墖" ) public void showImg(@PathVariable String filename,HttpServletResponse response) { fileInfoService.getFile(filename,response); } @GetMapping("/showImgById/{fileId}") + @Operation(summary = "鏍规嵁鏂囦欢id棰勮鍥剧墖" , description = "鏍规嵁鏂囦欢id棰勮鍥剧墖" ) public void showImgById(@PathVariable Long fileId,HttpServletResponse response) { fileInfoService.getFileById(fileId,response); } -- Gitblit v1.9.1