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/ModelController.java |   67 +++++++++++++++++----------------
 1 files changed, 34 insertions(+), 33 deletions(-)

diff --git a/se-system/src/main/java/com/terra/system/controller/show/ModelController.java b/se-system/src/main/java/com/terra/system/controller/show/ModelController.java
index c769836..080322c 100644
--- a/se-system/src/main/java/com/terra/system/controller/show/ModelController.java
+++ b/se-system/src/main/java/com/terra/system/controller/show/ModelController.java
@@ -8,11 +8,12 @@
 import com.terra.system.helper.StringHelper;
 import com.terra.system.service.show.ModelService;
 import com.terra.system.service.sys.TokenService;
-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 org.springframework.web.bind.annotation.*;
 import javax.servlet.http.HttpServletRequest;
 import java.util.List;
@@ -29,11 +30,11 @@
     TokenService tokenService;
 
     @SysLog()
-    @ApiOperation(value = "鍒嗛〉鏌ヨ妯″瀷骞惰繑鍥炶褰曟暟")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "layerid", value = "鍥惧眰ID", dataType = "Integer", 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 = "layerid", description = "鍥惧眰ID", 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 = "/selectModelByPageAndCount")
     public ResponseMsg<List<ModelEntity>> selectModelByPageAndCount(Integer layerid, Integer pageSize, Integer pageIndex) {
@@ -56,9 +57,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏍规嵁ID鏌ヨ妯″瀷")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
+    @Operation(summary = "鏍规嵁ID鏌ヨ妯″瀷")
+    @Parameters({
+            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
     })
     @GetMapping(value = "/selectModelById")
     public ResponseMsg<ModelEntity> selectModelById(int id) {
@@ -72,10 +73,10 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏍规嵁Guid鏌ヨ妯″瀷")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "layerid", value = "鍥惧眰ID", dataType = "Integer", paramType = "query", example = ""),
-            @ApiImplicitParam(name = "modelid", value = "妯″瀷ID", dataType = "String", paramType = "query", example = "")
+    @Operation(summary = "鏍规嵁Guid鏌ヨ妯″瀷")
+    @Parameters({
+            @Parameter(name = "layerid", description = "鍥惧眰ID", in = ParameterIn.QUERY, example = ""),
+            @Parameter(name = "modelid", description = "妯″瀷ID", in = ParameterIn.QUERY, example = "")
     })
     @GetMapping(value = "/selectModelByGuid")
     public ResponseMsg<ModelEntity> selectModelByGuid(Integer layerid, String modelid) {
@@ -93,9 +94,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鎻掑叆涓�涓ā鍨�")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "ModelEntity", paramType = "body")
+    @Operation(summary = "鎻掑叆涓�涓ā鍨�")
+    @Parameters({
+            @Parameter(name = "entity", description = "瀹炰綋绫�")
     })
     @PostMapping(value = "/insertModel", produces = "application/json; charset=UTF-8")
     public ResponseMsg<Integer> insertModel(@RequestBody ModelEntity entity, HttpServletRequest req) {
@@ -114,9 +115,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鎻掑叆澶氫釜妯″瀷")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "ModelEntity", paramType = "body")
+    @Operation(summary = "鎻掑叆澶氫釜妯″瀷")
+    @Parameters({
+            @Parameter(name = "list", description = "瀹炰綋绫婚泦鍚�")
     })
     @PostMapping(value = "/insertModels", produces = "application/json; charset=UTF-8")
     public ResponseMsg<Integer> insertModels(@RequestBody List<ModelEntity> list, HttpServletRequest req) {
@@ -137,9 +138,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 = "/deleteModel")
     public ResponseMsg<Integer> deleteModel(int id) {
@@ -153,9 +154,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鍒犻櫎澶氫釜妯″瀷")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "ids", value = "ID鏁扮粍", dataType = "Integer", paramType = "query", example = "1,2")
+    @Operation(summary = "鍒犻櫎澶氫釜妯″瀷")
+    @Parameters({
+            @Parameter(name = "ids", description = "ID鏁扮粍", in = ParameterIn.QUERY, example = "1,2")
     })
     @GetMapping(value = "/deleteModels")
     public ResponseMsg<Integer> deleteModels(@RequestParam List<Integer> ids) {
@@ -173,9 +174,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏇存柊涓�涓ā鍨�")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "ModelEntity", paramType = "body")
+    @Operation(summary = "鏇存柊涓�涓ā鍨�")
+    @Parameters({
+            @Parameter(name = "entity", description = "瀹炰綋绫�")
     })
     @ResponseBody
     @PostMapping(value = "/updateModel", produces = "application/json; charset=UTF-8")
@@ -195,9 +196,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏇存柊澶氫釜妯″瀷")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "ModelEntity", paramType = "body")
+    @Operation(summary = "鏇存柊澶氫釜妯″瀷")
+    @Parameters({
+            @Parameter(name = "list", description = "瀹炰綋绫婚泦鍚�")
     })
     @ResponseBody
     @PostMapping(value = "/updateModels", produces = "application/json; charset=UTF-8")

--
Gitblit v1.9.3