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/data/DirController.java |   73 ++++++++++++++++++------------------
 1 files changed, 37 insertions(+), 36 deletions(-)

diff --git a/se-system/src/main/java/com/terra/system/controller/data/DirController.java b/se-system/src/main/java/com/terra/system/controller/data/DirController.java
index 844840b..3e74247 100644
--- a/se-system/src/main/java/com/terra/system/controller/data/DirController.java
+++ b/se-system/src/main/java/com/terra/system/controller/data/DirController.java
@@ -8,12 +8,13 @@
 import com.terra.system.helper.WebHelper;
 import com.terra.system.service.data.DirService;
 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;
@@ -24,7 +25,7 @@
  * @author sws
  * @date   2022-09-22
  */
-@Api(tags = "鏁版嵁绠$悊\\鐩綍绠$悊")
+@Tag(name = "鏁版嵁绠$悊\\鐩綍绠$悊")
 @RestController
 @RequestMapping("/dir")
 public class DirController extends BaseController {
@@ -35,9 +36,9 @@
     TokenService tokenService;
 
     @SysLog()
-    @ApiOperation(value = "鎻掑叆涓�鏉�")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "DirEntity", paramType = "body", example = "")
+    @Operation(summary = "鎻掑叆涓�鏉�")
+    @Parameters({
+            @Parameter(name = "entity", description = "瀹炰綋绫�", example = "")
     })
     @PostMapping(value = "/insertDir", produces = "application/json; charset=UTF-8")
     public ResponseMsg<Integer> insertDir(@RequestBody DirEntity entity, HttpServletRequest req) {
@@ -56,9 +57,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鎻掑叆澶氭潯")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "DirEntity", paramType = "body", example = "")
+    @Operation(summary = "鎻掑叆澶氭潯")
+    @Parameters({
+            @Parameter(name = "list", description = "瀹炰綋绫婚泦鍚�", example = "")
     })
     @PostMapping(value = "/insertDirs", produces = "application/json; charset=UTF-8")
     public ResponseMsg<Integer> insertDirs(@RequestBody List<DirEntity> list, HttpServletRequest req) {
@@ -77,9 +78,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鍒犻櫎涓�鏉�")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
+    @Operation(summary = "鍒犻櫎涓�鏉�")
+    @Parameters({
+            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
     })
     @GetMapping(value = "/deleteDir")
     public ResponseMsg<Integer> deleteDir(int id) {
@@ -93,9 +94,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鍒犻櫎澶氭潯")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "ids", value = "ID鏁扮粍", dataType = "DirEntity", paramType = "body", example = "")
+    @Operation(summary = "鍒犻櫎澶氭潯")
+    @Parameters({
+            @Parameter(name = "ids", description = "ID鏁扮粍", example = "")
     })
     @GetMapping(value = "/deleteDirs")
     public ResponseMsg<Integer> deleteDirs(@RequestParam List<Integer> ids) {
@@ -113,9 +114,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏇存柊涓�鏉�")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "DictEntity", paramType = "body", example = "")
+    @Operation(summary = "鏇存柊涓�鏉�")
+    @Parameters({
+            @Parameter(name = "entity", description = "瀹炰綋绫�", example = "")
     })
     @ResponseBody
     @PostMapping(value = "/updateDir", produces = "application/json; charset=UTF-8")
@@ -135,9 +136,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏇存柊澶氭潯")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "DirEntity", paramType = "body", example = "")
+    @Operation(summary = "鏇存柊澶氭潯")
+    @Parameters({
+            @Parameter(name = "list", description = "瀹炰綋绫婚泦鍚�", example = "")
     })
     @ResponseBody
     @PostMapping(value = "/updateDirs", produces = "application/json; charset=UTF-8")
@@ -159,9 +160,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏍规嵁ID鏌ヨ鏁版嵁")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
+    @Operation(summary = "鏍规嵁ID鏌ヨ鏁版嵁")
+    @Parameters({
+            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
     })
     @GetMapping(value = "/selectDir")
     public ResponseMsg<DirEntity> selectDir(int id) {
@@ -175,7 +176,7 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ鎵�鏈夋暟鎹�")
+    @Operation(summary = "鏌ヨ鎵�鏈夋暟鎹�")
     @GetMapping(value = "/selectDirAll")
     public ResponseMsg<List<DirEntity>> selectDirAll() {
         try {
@@ -187,9 +188,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "涓嬭浇鐩綍缁撴瀯")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "id", value = "鐩綍ID", dataType = "Integer", paramType = "query", example = "1")
+    @Operation(summary = "涓嬭浇鐩綍缁撴瀯")
+    @Parameters({
+            @Parameter(name = "id", description = "鐩綍ID", in = ParameterIn.QUERY, example = "1")
     })
     @GetMapping(value = "/downloadDir")
     public void downloadDir(int id, HttpServletResponse res) {
@@ -211,9 +212,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ椤圭洰")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "name", value = "鍚嶇О", dataType = "String", paramType = "query", example = "瑗�")
+    @Operation(summary = "鏌ヨ椤圭洰")
+    @Parameters({
+            @Parameter(name = "name", description = "鍚嶇О", in = ParameterIn.QUERY, example = "瑗�")
     })
     @GetMapping(value = "/selectProject")
     public ResponseMsg<List<DirEntity>> selectProject(String name) {
@@ -227,9 +228,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "閫掑綊鏌ヨ")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "pid", value = "鐖禝D", dataType = "Integer", paramType = "query", example = "1")
+    @Operation(summary = "閫掑綊鏌ヨ")
+    @Parameters({
+            @Parameter(name = "pid", description = "鐖禝D", in = ParameterIn.QUERY, example = "1")
     })
     @GetMapping(value = "/selectByPid")
     public ResponseMsg<List<DirEntity>> selectByPid(int pid) {

--
Gitblit v1.9.3