From b8d62de41ff7e1e0549061308aa11f68cf881ed9 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 16 七月 2025 17:01:20 +0800
Subject: [PATCH] 修改所有的controller

---
 se-system/src/main/java/com/terra/system/controller/show/DataLibController.java |   65 ++++++++++++++++----------------
 1 files changed, 33 insertions(+), 32 deletions(-)

diff --git a/se-system/src/main/java/com/terra/system/controller/show/DataLibController.java b/se-system/src/main/java/com/terra/system/controller/show/DataLibController.java
index 21fb2d4..20ac6b1 100644
--- a/se-system/src/main/java/com/terra/system/controller/show/DataLibController.java
+++ b/se-system/src/main/java/com/terra/system/controller/show/DataLibController.java
@@ -22,12 +22,13 @@
 import com.terra.system.service.data.VerService;
 import com.terra.system.service.show.DataLibService;
 import com.terra.system.service.sys.TokenService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiImplicitParam;
-import io.swagger.annotations.ApiImplicitParams;
-import io.swagger.annotations.ApiOperation;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.Parameters;
 import javax.annotation.Resource;
 
+import io.swagger.v3.oas.annotations.enums.ParameterIn;
+import io.swagger.v3.oas.annotations.tags.Tag;
 import org.springframework.web.bind.annotation.*;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
@@ -40,7 +41,7 @@
  * 璧勬枡棣�
  * @author WWW
  */
-@Api(tags = "缁煎悎灞曠ず\\璧勬枡棣�")
+@Tag(name = "缁煎悎灞曠ず\\璧勬枡棣�")
 @RestController
 @RequestMapping("/dataLib")
 public class DataLibController extends BaseQueryController {
@@ -60,9 +61,9 @@
     VerService verService;
 
     @SysLog()
-    @ApiOperation(value = "鏍规嵁鐩綍ID鏌ヨ鐗堟湰鍒楄〃")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "dirid", value = "鐩綍ID", dataType = "Integer", paramType = "query")
+    @Operation(summary = "鏍规嵁鐩綍ID鏌ヨ鐗堟湰鍒楄〃")
+    @Parameters({
+            @Parameter(name = "dirid", description = "鐩綍ID", in = ParameterIn.QUERY)
     })
     @GetMapping(value = "/selectVerByDirid")
     public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) {
@@ -83,14 +84,14 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鍒嗛〉鏌ヨ鍏冩暟鎹�")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "depcode", value = "鍗曚綅缂栫爜", dataType = "String", paramType = "query", example = "00"),
-            @ApiImplicitParam(name = "types", value = "璧勬枡绫诲埆", dataType = "String", paramType = "query", example = "鍩虹娴嬬粯,鍩虹鍦扮伨,鍩虹鍕樺療,鍚堣鏁版嵁,绠$悊鏁版嵁,娴嬬粯锛圗SV锛�,鍕樺療锛圗GE锛�,鍦扮伨锛圗GD锛�,娲炲簱锛圗GD锛�"),
-            @ApiImplicitParam(name = "dirs", value = "椤圭洰缂栫爜", dataType = "String", paramType = "query", example = ""),
-            @ApiImplicitParam(name = "name", value = "鍚嶇О", dataType = "String", paramType = "query", example = ""),
-            @ApiImplicitParam(name = "pageSize", value = "姣忛〉鏉℃暟", dataType = "Integer", paramType = "query", example = "10"),
-            @ApiImplicitParam(name = "pageIndex", value = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", dataType = "Integer", paramType = "query", example = "1")
+    @Operation(summary = "鍒嗛〉鏌ヨ鍏冩暟鎹�")
+    @Parameters({
+            @Parameter(name = "depcode", description = "鍗曚綅缂栫爜", in = ParameterIn.QUERY, example = "00"),
+            @Parameter(name = "types", description = "璧勬枡绫诲埆", in = ParameterIn.QUERY, example = "鍩虹娴嬬粯,鍩虹鍦扮伨,鍩虹鍕樺療,鍚堣鏁版嵁,绠$悊鏁版嵁,娴嬬粯锛圗SV锛�,鍕樺療锛圗GE锛�,鍦扮伨锛圗GD锛�,娲炲簱锛圗GD锛�"),
+            @Parameter(name = "dirs", description = "椤圭洰缂栫爜", in = ParameterIn.QUERY, example = ""),
+            @Parameter(name = "name", description = "鍚嶇О", in = ParameterIn.QUERY, example = ""),
+            @Parameter(name = "pageSize", description = "姣忛〉鏉℃暟", in = ParameterIn.QUERY, example = "10"),
+            @Parameter(name = "pageIndex", description = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", in = ParameterIn.QUERY, example = "1")
     })
     @GetMapping(value = "/selectMetasForPage")
     public ResponseMsg<Object> selectMetasForPage(String depcode, String types, String dirs, String name, Integer pageSize, Integer pageIndex) {
@@ -115,11 +116,11 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ琛ㄤ腑鏁版嵁")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "id", value = "鍏冩暟鎹甀D", dataType = "Integer", paramType = "query", example = "115"),
-            @ApiImplicitParam(name = "pageIndex", value = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", dataType = "Integer", paramType = "query", example = "1"),
-            @ApiImplicitParam(name = "pageSize", value = "姣忛〉鏉℃暟", dataType = "Integer", paramType = "query", example = "10")
+    @Operation(summary = "鏌ヨ琛ㄤ腑鏁版嵁")
+    @Parameters({
+            @Parameter(name = "id", description = "鍏冩暟鎹甀D", in = ParameterIn.QUERY, example = "115"),
+            @Parameter(name = "pageIndex", description = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", in = ParameterIn.QUERY, example = "1"),
+            @Parameter(name = "pageSize", description = "姣忛〉鏉℃暟", in = ParameterIn.QUERY, example = "10")
     })
     @GetMapping(value = "/selectDbData")
     public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) {
@@ -154,9 +155,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "璇锋眰鍏冩暟鎹笅杞�")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "dr", value = "璇锋眰涓嬭浇瀹炰綋", dataType = "DownloadReqEntity", paramType = "body")
+    @Operation(summary = "璇锋眰鍏冩暟鎹笅杞�")
+    @Parameters({
+            @Parameter(name = "dr", description = "璇锋眰涓嬭浇瀹炰綋")
     })
     @ResponseBody
     @PostMapping(value = "/downloadReq")
@@ -185,10 +186,10 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ涓嬭浇鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "guid", value = "鏂囦欢GUID", dataType = "String", paramType = "query"),
-            @ApiImplicitParam(name = "pwd", value = "瀵嗙爜", dataType = "String", paramType = "query")
+    @Operation(summary = "鏌ヨ涓嬭浇鏂囦欢")
+    @Parameters({
+            @Parameter(name = "guid", description = "鏂囦欢GUID", in = ParameterIn.QUERY),
+            @Parameter(name = "pwd", description = "瀵嗙爜", in = ParameterIn.QUERY)
     })
     @GetMapping(value = "/selectDownloadFile")
     public ResponseMsg<Boolean> selectDownloadFile(String guid, String pwd) {
@@ -223,10 +224,10 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "涓嬭浇鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "guid", value = "鏂囦欢GUID", dataType = "String", paramType = "query"),
-            @ApiImplicitParam(name = "pwd", value = "瀵嗙爜", dataType = "String", paramType = "query")
+    @Operation(summary = "涓嬭浇鏂囦欢")
+    @Parameters({
+            @Parameter(name = "guid", description = "鏂囦欢GUID", in = ParameterIn.QUERY),
+            @Parameter(name = "pwd", description = "瀵嗙爜", in = ParameterIn.QUERY)
     })
     @ResponseBody
     @GetMapping(value = "/downloadFile")

--
Gitblit v1.9.3