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/upload/CheckController.java | 70 ++++++++++++++++++----------------- 1 files changed, 36 insertions(+), 34 deletions(-) diff --git a/se-system/src/main/java/com/terra/system/controller/data/upload/CheckController.java b/se-system/src/main/java/com/terra/system/controller/data/upload/CheckController.java index 8ca6ef5..a3e1ee4 100644 --- a/se-system/src/main/java/com/terra/system/controller/data/upload/CheckController.java +++ b/se-system/src/main/java/com/terra/system/controller/data/upload/CheckController.java @@ -10,10 +10,12 @@ import com.terra.system.helper.PathHelper; import com.terra.system.helper.StringHelper; import com.terra.system.service.data.FmeService; -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.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -38,9 +40,9 @@ protected FmeService fmeService; @SysLog() - @ApiOperation(value = "鏌ヨ浠诲姟鐘舵��") - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "浠诲姟ID", dataType = "String", paramType = "query", example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4") + @Operation(summary = "鏌ヨ浠诲姟鐘舵��") + @Parameters({ + @Parameter(name = "id", description = "浠诲姟ID", in = ParameterIn.QUERY, example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4") }) @GetMapping(value = "/selectTaskStatus") public Object selectTaskStatus(String id, HttpServletRequest req) { @@ -56,9 +58,9 @@ } @SysLog() - @ApiOperation(value = "涓嬭浇璐ㄦ缁撴灉") - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "浠诲姟ID", dataType = "String", paramType = "query", example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4") + @Operation(summary = "涓嬭浇璐ㄦ缁撴灉") + @Parameters({ + @Parameter(name = "id", description = "浠诲姟ID", in = ParameterIn.QUERY, example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4") }) @GetMapping(value = "/downloadResult") public void downloadResult(String id, HttpServletRequest req, HttpServletResponse res) { @@ -76,9 +78,9 @@ } @SysLog() - @ApiOperation(value = "鎻愪氦鏁版嵁璐ㄦ") - @ApiImplicitParams({ - @ApiImplicitParam(name = "entity", value = "FME璇锋眰瀹炰綋绫�", dataType = "FmeReqEntity", paramType = "body") + @Operation(summary = "鎻愪氦鏁版嵁璐ㄦ") + @Parameters({ + @Parameter(name = "entity", description = "FME璇锋眰瀹炰綋绫�") }) @ResponseBody @PostMapping(value = "/uploadChecks") @@ -167,7 +169,7 @@ } /*@SysLog() - @ApiOperation(value = "鏌ヨOSGB妫�鏌�") + @Operation(summary = "鏌ヨOSGB妫�鏌�") @GetMapping(value = "/selectCheckOsgb") public ResponseMsg<Object> selectCheckOsgb(HttpServletRequest req) { try { @@ -188,7 +190,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ琛ㄦ牸鏁版嵁妫�鏌�") + @Operation(summary = "鏌ヨ琛ㄦ牸鏁版嵁妫�鏌�") @GetMapping(value = "/selectCheckXls") public ResponseMsg<Object> selectCheckXls(HttpServletRequest req) { try { @@ -209,7 +211,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ鐐逛簯妫�鏌�") + @Operation(summary = "鏌ヨ鐐逛簯妫�鏌�") @GetMapping(value = "/selectCheckLaz") public ResponseMsg<Object> selectCheckLaz(HttpServletRequest req) { try { @@ -230,7 +232,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ楂樼▼妫�鏌�") + @Operation(summary = "鏌ヨ楂樼▼妫�鏌�") @GetMapping(value = "/selectCheckDem") public ResponseMsg<Object> selectCheckDem(HttpServletRequest req) { try { @@ -252,7 +254,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ灞炴�ф鏌�") + @Operation(summary = "鏌ヨ灞炴�ф鏌�") @GetMapping(value = "/selectCheckAttrs") public ResponseMsg<Object> selectCheckAttrs(HttpServletRequest req) { try { @@ -273,7 +275,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ鎷撴墤妫�鏌�") + @Operation(summary = "鏌ヨ鎷撴墤妫�鏌�") @GetMapping(value = "/selectCheckTopology") public ResponseMsg<Object> selectCheckTopology(HttpServletRequest req) { try { @@ -300,7 +302,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ鍥鹃潰鏁撮グ妫�鏌�") + @Operation(summary = "鏌ヨ鍥鹃潰鏁撮グ妫�鏌�") @GetMapping(value = "/selectCheckDecorate") public ResponseMsg<Object> selectCheckDecorate(HttpServletRequest req) { try { @@ -321,7 +323,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ鍘熺偣妫�鏌�") + @Operation(summary = "鏌ヨ鍘熺偣妫�鏌�") @GetMapping(value = "/selectCheckOrigin") public ResponseMsg<Object> selectCheckOrigin(HttpServletRequest req) { try { @@ -341,7 +343,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ鏍呮牸妫�鏌�") + @Operation(summary = "鏌ヨ鏍呮牸妫�鏌�") @GetMapping(value = "/selectCheckDom") public ResponseMsg<Object> selectCheckDom(HttpServletRequest req) { try { @@ -364,7 +366,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ鏁板鍩虹妫�鏌�") + @Operation(summary = "鏌ヨ鏁板鍩虹妫�鏌�") @GetMapping(value = "/selectCheckMath") public ResponseMsg<Object> selectCheckMath(HttpServletRequest req) { try { @@ -385,7 +387,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ鍏冩暟鎹鏌�") + @Operation(summary = "鏌ヨ鍏冩暟鎹鏌�") @GetMapping(value = "/selectCheckMeta") public ResponseMsg<Object> selectCheckMeta(HttpServletRequest req) { try { @@ -406,7 +408,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ鎬昏川妫�") + @Operation(summary = "鏌ヨ鎬昏川妫�") @GetMapping(value = "/selectCheckMain") public ResponseMsg<Object> selectCheckMain(HttpServletRequest req) { try { @@ -430,7 +432,7 @@ } @SysLog() - @ApiOperation(value = "閫昏緫涓�鑷存�ф鏌�") + @Operation(summary = "閫昏緫涓�鑷存�ф鏌�") @GetMapping(value = "/checkLogical") public ResponseMsg<Object> checkLogical(HttpServletRequest req) { try { @@ -451,7 +453,7 @@ } @SysLog() - @ApiOperation(value = "鍗曢」鎴愭灉瀹屾暣鎬ф鏌�") + @Operation(summary = "鍗曢」鎴愭灉瀹屾暣鎬ф鏌�") @GetMapping(value = "/checkSingleIntegrity") public ResponseMsg<Object> checkSingleIntegrity(HttpServletRequest req) { try { @@ -473,7 +475,7 @@ }*/ @SysLog() - @ApiOperation(value = "鏈嶅姟娉ㄥ唽") + @Operation(summary = "鏈嶅姟娉ㄥ唽") @GetMapping(value = "/selectServerRegister") public ResponseMsg<Object> selectServerRegister(HttpServletRequest req) { try { @@ -489,10 +491,10 @@ } @SysLog() - @ApiOperation(value = "鏈嶅姟鐢宠") - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "鏈嶅姟ID", dataType = "String", paramType = "query", example = "195f77eb-19dd-4e34-afc1-fcff8f758f7b"), - @ApiImplicitParam(name = "pubid", value = "鍙戝竷ID", dataType = "Integer", paramType = "query", example = "1"), + @Operation(summary = "鏈嶅姟鐢宠") + @Parameters({ + @Parameter(name = "id", description = "鏈嶅姟ID", in = ParameterIn.QUERY, example = "195f77eb-19dd-4e34-afc1-fcff8f758f7b"), + @Parameter(name = "pubid", description = "鍙戝竷ID", in = ParameterIn.QUERY, example = "1"), }) @GetMapping(value = "/selectServerApply") public ResponseMsg<Object> selectServerApply(String id, Integer pubid, HttpServletRequest req) { @@ -506,9 +508,9 @@ } @SysLog() - @ApiOperation(value = "鍒犻櫎璧勬簮") - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "鏈嶅姟ID", dataType = "String", paramType = "query", example = "6f4b6783-4b98-4d46-a0d9-43cdb5f339dc") + @Operation(summary = "鍒犻櫎璧勬簮") + @Parameters({ + @Parameter(name = "id", description = "鏈嶅姟ID", in = ParameterIn.QUERY, example = "6f4b6783-4b98-4d46-a0d9-43cdb5f339dc") }) @GetMapping(value = "/selectDeleteRes") public ResponseMsg<Object> selectDeleteRes(String id, HttpServletRequest req) { -- Gitblit v1.9.3