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/ExportController.java |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/se-system/src/main/java/com/terra/system/controller/show/ExportController.java b/se-system/src/main/java/com/terra/system/controller/show/ExportController.java
index c17dd56..6e3492e 100644
--- a/se-system/src/main/java/com/terra/system/controller/show/ExportController.java
+++ b/se-system/src/main/java/com/terra/system/controller/show/ExportController.java
@@ -13,12 +13,13 @@
 import com.terra.system.service.show.ExportService;
 import com.terra.system.service.sys.DownlogService;
 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;
@@ -28,7 +29,7 @@
  * 鍦ㄧ嚎鍒跺浘
  * @author WWW
  */
-@Api(tags = "缁煎悎灞曠ず\\鍦ㄧ嚎鍒跺浘")
+@Tag(name = "缁煎悎灞曠ず\\鍦ㄧ嚎鍒跺浘")
 @RestController
 @RequestMapping("/export")
 public class ExportController  extends BaseController {
@@ -45,11 +46,11 @@
     DownloadService downloadService;
 
     @SysLog()
-    @ApiOperation(value = "鍒嗛〉鏌ヨ涓嬭浇鏂囦欢")
-    @ApiImplicitParams({
-            @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 = "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 = "/selectByPage")
     public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -76,9 +77,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏂板缓鍑哄浘")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "entity", value = "鍦ㄧ嚎鍒跺浘瀹炰綋绫�", dataType = "ExportEntity", paramType = "body")
+    @Operation(summary = "鏂板缓鍑哄浘")
+    @Parameters({
+            @Parameter(name = "entity", description = "鍦ㄧ嚎鍒跺浘瀹炰綋绫�")
     })
     @ResponseBody
     @PostMapping(value = "/insertMap", produces = "application/json; charset=UTF-8")
@@ -106,9 +107,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "涓嬭浇鍑哄浘")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "guid", value = "鏂囦欢GUID", dataType = "String", paramType = "query")
+    @Operation(summary = "涓嬭浇鍑哄浘")
+    @Parameters({
+            @Parameter(name = "guid", description = "鏂囦欢GUID", in = ParameterIn.QUERY)
     })
     @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
     public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {

--
Gitblit v1.9.3