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/PublishController.java |   96 ++++++++++++++++++++++++-----------------------
 1 files changed, 49 insertions(+), 47 deletions(-)

diff --git a/se-system/src/main/java/com/terra/system/controller/data/PublishController.java b/se-system/src/main/java/com/terra/system/controller/data/PublishController.java
index 9fa63df..779bb29 100644
--- a/se-system/src/main/java/com/terra/system/controller/data/PublishController.java
+++ b/se-system/src/main/java/com/terra/system/controller/data/PublishController.java
@@ -16,11 +16,13 @@
 import com.terra.system.service.data.RasterService;
 import com.terra.system.service.sys.LayerService;
 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 io.swagger.v3.oas.annotations.enums.ParameterIn;
+import io.swagger.v3.oas.annotations.media.Schema;
+import io.swagger.v3.oas.annotations.tags.Tag;
 import org.springframework.web.bind.annotation.*;
 import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
@@ -33,7 +35,7 @@
  * 鏁版嵁鍙戝竷
  * @author WWW
  */
-@Api(tags = "鏁版嵁绠$悊\\鍙戝竷绠$悊")
+@Tag(name = "鏁版嵁绠$悊\\鍙戝竷绠$悊")
 @RestController
 @RequestMapping("/publish")
 public class PublishController extends BaseController {
@@ -55,9 +57,9 @@
     @Resource
     PathHelper pathHelper;
 
-    @ApiOperation(value = "娴嬭瘯鏌ヨ")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "seconds", value = "绉�", dataType = "Integer", paramType = "query", example = "30")
+    @Operation(summary = "娴嬭瘯鏌ヨ")
+    @Parameters({
+            @Parameter(name = "seconds", description = "绉�", in = ParameterIn.QUERY, example = "30")
     })
     @GetMapping(value = "/selectForTest")
     public ResponseMsg<Object> selectForTest(Integer seconds) {
@@ -75,15 +77,15 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鍒嗛〉鏌ヨ鍏冩暟鎹�")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "depcode", value = "鍗曚綅缂栫爜", dataType = "String", paramType = "query", example = "00"),
-            @ApiImplicitParam(name = "dircode", value = "鐩綍缂栫爜", dataType = "String", paramType = "query", example = "01"),
-            @ApiImplicitParam(name = "verid", value = "鐗堟湰ID", dataType = "Integer", paramType = "query", example = "0"),
-            @ApiImplicitParam(name = "type", value = "绫诲埆", dataType = "String", paramType = "query", example = "DOM"),
-            @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 = "dircode", description = "鐩綍缂栫爜", in = ParameterIn.QUERY, example = "01"),
+            @Parameter(name = "verid", description = "鐗堟湰ID", in = ParameterIn.QUERY, example = "0"),
+            @Parameter(name = "type", description = "绫诲埆", in = ParameterIn.QUERY, example = "DOM"),
+            @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 = "/selectMetasByPage")
     public ResponseMsg<Object> selectMetasByPage(String depcode, String dircode, Integer verid, String type, String name, Integer pageSize, Integer pageIndex) {
@@ -164,13 +166,13 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鍒嗛〉鏌ヨ骞惰繑鍥炶褰曟暟")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "name", value = "鍚嶇О", dataType = "String", paramType = "query", example = ""),
-            @ApiImplicitParam(name = "dircode", value = "鐩綍", dataType = "String", paramType = "query", example = ""),
-            @ApiImplicitParam(name = "type", 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 = "dircode", description = "鐩綍", in = ParameterIn.QUERY, example = ""),
+            @Parameter(name = "type", 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 = "/selectByPageAndCount")
     public ResponseMsg<List<PublishEntity>> selectByPageAndCount(String name, String dircode, String type, Integer pageSize, Integer pageIndex) {
@@ -224,9 +226,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 = "/selectById")
     public ResponseMsg<PublishEntity> selectById(int id) {
@@ -240,9 +242,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨLas鏂囦欢鍧愭爣绯籌D")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "ids", value = "鍏冩暟鎹甀D闆嗗悎", dataType = "Integer[]", paramType = "query", example = "10483,10481,10456,10285")
+    @Operation(summary = "鏌ヨLas鏂囦欢鍧愭爣绯籌D")
+    @Parameters({
+            @Parameter(name = "ids", description = "鍏冩暟鎹甀D闆嗗悎", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "10483,10481,10456,10285")
     })
     @GetMapping(value = "/selectLasCs")
     public ResponseMsg<Object> selectLasCs(Integer[] ids, HttpServletRequest req) {
@@ -265,9 +267,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ鏍呮牸鏁版嵁鐨勫潗鏍囩郴ID")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "ids", value = "鍏冩暟鎹甀D闆嗗悎", dataType = "Integer[]", paramType = "query", example = "10531,10527,10526")
+    @Operation(summary = "鏌ヨ鏍呮牸鏁版嵁鐨勫潗鏍囩郴ID")
+    @Parameters({
+            @Parameter(name = "ids", description = "鍏冩暟鎹甀D闆嗗悎", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "10531,10527,10526")
     })
     @GetMapping(value = "/selectRasterCs")
     public ResponseMsg<Object> selectRasterCs(Integer[] ids, HttpServletRequest req) {
@@ -313,11 +315,11 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ鍧愭爣杞崲")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "x", value = "X鍧愭爣", dataType = "double", paramType = "query", example = "400925.079"),
-            @ApiImplicitParam(name = "y", value = "Y鍧愭爣", dataType = "double", paramType = "query", example = "2541768.173"),
-            @ApiImplicitParam(name = "epsg", value = "EPSG缂栫爜", dataType = "int", paramType = "query", example = "4548")
+    @Operation(summary = "鏌ヨ鍧愭爣杞崲")
+    @Parameters({
+            @Parameter(name = "x", description = "X鍧愭爣", in = ParameterIn.QUERY, example = "400925.079"),
+            @Parameter(name = "y", description = "Y鍧愭爣", in = ParameterIn.QUERY, example = "2541768.173"),
+            @Parameter(name = "epsg", description = "EPSG缂栫爜", in = ParameterIn.QUERY, example = "4548")
     })
     @GetMapping(value = "/selectCsTransform")
     public Object selectCsTransform(double x, double y, int epsg) {
@@ -329,9 +331,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鎻掑叆鍙戝竷鏁版嵁")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "PubEntity", paramType = "body")
+    @Operation(summary = "鎻掑叆鍙戝竷鏁版嵁")
+    @Parameters({
+            @Parameter(name = "entity", description = "瀹炰綋绫�")
     })
     @PostMapping(value = "/insertForPub", produces = "application/json; charset=UTF-8")
     public ResponseMsg<Object> insertForPub(@RequestBody PubEntity entity, HttpServletRequest req) {
@@ -384,9 +386,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鍒犻櫎澶氭潯")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "ids", value = "ID鏁扮粍", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1")
+    @Operation(summary = "鍒犻櫎澶氭潯")
+    @Parameters({
+            @Parameter(name = "ids", description = "ID鏁扮粍", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1")
     })
     @GetMapping(value = "/deletes")
     public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids, HttpServletRequest req) {
@@ -414,9 +416,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏇存柊涓�鏉�")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "PublishEntity", paramType = "body")
+    @Operation(summary = "鏇存柊涓�鏉�")
+    @Parameters({
+            @Parameter(name = "entity", description = "瀹炰綋绫�")
     })
     @ResponseBody
     @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")

--
Gitblit v1.9.3