From acf352921487e857810a943b008121e33404e9ae Mon Sep 17 00:00:00 2001
From: kongdeqiang <kongdeqiang960204@163.com>
Date: 星期二, 15 四月 2025 16:56:50 +0800
Subject: [PATCH] fix:白名单新增bug
---
src/main/java/com/boying/controller/FileInfo2Controller.java | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/main/java/com/boying/controller/FileInfo2Controller.java b/src/main/java/com/boying/controller/FileInfo2Controller.java
index 17c56b6..1fceedb 100644
--- a/src/main/java/com/boying/controller/FileInfo2Controller.java
+++ b/src/main/java/com/boying/controller/FileInfo2Controller.java
@@ -3,8 +3,6 @@
import com.boying.entity.FileInfo;
import com.boying.service.FileInfoService;
import io.lettuce.core.dynamic.annotation.Param;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
@@ -16,7 +14,6 @@
@RestController
@RequestMapping("ffzf/fileInfo")
@RequiredArgsConstructor
-@Tag(description = "ffzf/fileInfo" , name = "鏂囦欢涓婁紶鎺ュ彛" )
public class FileInfo2Controller {
private final FileInfoService fileInfoService;
@@ -26,14 +23,12 @@
* @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(",")){
@@ -51,20 +46,17 @@
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")
- @Operation(summary = "鏍规嵁璺緞棰勮鍥剧墖" , description = "鏍规嵁璺緞棰勮鍥剧墖" )
public void showImg( String path,HttpServletResponse response) {
fileInfoService.getFile(path,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