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/ApplyController.java | 71 ++++++++++++++++++----------------- 1 files changed, 36 insertions(+), 35 deletions(-) diff --git a/se-system/src/main/java/com/terra/system/controller/show/ApplyController.java b/se-system/src/main/java/com/terra/system/controller/show/ApplyController.java index dfafc95..ac556b8 100644 --- a/se-system/src/main/java/com/terra/system/controller/show/ApplyController.java +++ b/se-system/src/main/java/com/terra/system/controller/show/ApplyController.java @@ -19,12 +19,13 @@ import com.terra.system.service.sys.DownlogService; import com.terra.system.service.sys.TokenService; import com.terra.system.service.sys.UserService; -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; @@ -35,7 +36,7 @@ * 鏁版嵁鐢宠 * @author WWW */ -@Api(tags = "缁煎悎灞曠ず\\鏁版嵁鐢宠") +@Tag(name = "缁煎悎灞曠ず\\鏁版嵁鐢宠") @RestController @RequestMapping("/apply") public class ApplyController extends BaseController { @@ -58,9 +59,9 @@ DownloadService downloadService; @SysLog() - @ApiOperation(value = "鎻掑叆鏁版嵁鐢宠") - @ApiImplicitParams({ - @ApiImplicitParam(name = "dr", value = "璇锋眰涓嬭浇瀹炰綋", dataType = "DownloadReqEntity", paramType = "body") + @Operation(summary = "鎻掑叆鏁版嵁鐢宠") + @Parameters({ + @Parameter(name = "dr", description = "璇锋眰涓嬭浇瀹炰綋") }) @ResponseBody @PostMapping(value = "/insertApply") @@ -96,14 +97,14 @@ } @SysLog() - @ApiOperation(value = "鍒嗛〉鏌ヨ鐢宠") - @ApiImplicitParams({ - @ApiImplicitParam(name = "uname", value = "鐢ㄦ埛鍚�", dataType = "String", paramType = "query", example = "鍛�"), - @ApiImplicitParam(name = "status", value = "鐘舵��", dataType = "Integer", paramType = "query", example = "0"), - @ApiImplicitParam(name = "start", value = "寮�濮嬫椂闂�", dataType = "Timestamp", paramType = "query", example = "2022-12-09 09:00:00"), - @ApiImplicitParam(name = "end", value = "缁撴潫鏃堕棿", dataType = "Timestamp", paramType = "query", example = "2022-12-31 23:00:00"), - @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 = "uname", description = "鐢ㄦ埛鍚�", in = ParameterIn.QUERY, example = "鍛�"), + @Parameter(name = "status", description = "鐘舵��", in = ParameterIn.QUERY, example = "0"), + @Parameter(name = "start", description = "寮�濮嬫椂闂�", in = ParameterIn.QUERY, example = "2022-12-09 09:00:00"), + @Parameter(name = "end", description = "缁撴潫鏃堕棿", in = ParameterIn.QUERY, example = "2022-12-31 23:00:00"), + @Parameter(name = "pageSize", description = "姣忛〉鏉℃暟", in = ParameterIn.QUERY, example = "10"), + @Parameter(name = "pageIndex", description = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", in = ParameterIn.QUERY, example = "1") }) @GetMapping(value = "/selectByPage") public ResponseMsg<Object> selectByPage(String uname, Integer status, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex, HttpServletRequest req) { @@ -127,7 +128,7 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ寰呭鏍告暟") + @Operation(summary = "鏌ヨ寰呭鏍告暟") @GetMapping(value = "/selectSubmits") public ResponseMsg<Object> selectSubmits(HttpServletRequest req) { try { @@ -141,9 +142,9 @@ } @SysLog() - @ApiOperation(value = "鏌ヨ娴佺▼") - @ApiImplicitParams({ - @ApiImplicitParam(name = "applyid", value = "鏁版嵁鐢宠ID", dataType = "Integer", paramType = "query", example = "1") + @Operation(summary = "鏌ヨ娴佺▼") + @Parameters({ + @Parameter(name = "applyid", description = "鏁版嵁鐢宠ID", in = ParameterIn.QUERY, example = "1") }) @GetMapping(value = "/selectFlows") public ResponseMsg<Object> selectFlows(Integer applyid) { @@ -157,9 +158,9 @@ } @SysLog() - @ApiOperation(value = "搴熷純鐢宠") - @ApiImplicitParams({ - @ApiImplicitParam(name = "applyid", value = "鏁版嵁鐢宠ID", dataType = "Integer", paramType = "query", example = "1") + @Operation(summary = "搴熷純鐢宠") + @Parameters({ + @Parameter(name = "applyid", description = "鏁版嵁鐢宠ID", in = ParameterIn.QUERY, example = "1") }) @GetMapping(value = "/updateForDiscard") public ResponseMsg<Object> updateForDiscard(Integer applyid, HttpServletRequest req) { @@ -182,9 +183,9 @@ } @SysLog() - @ApiOperation(value = "閲嶆柊鎻愪氦") - @ApiImplicitParams({ - @ApiImplicitParam(name = "applyid", value = "鏁版嵁鐢宠ID", dataType = "Integer", paramType = "query", example = "1") + @Operation(summary = "閲嶆柊鎻愪氦") + @Parameters({ + @Parameter(name = "applyid", description = "鏁版嵁鐢宠ID", in = ParameterIn.QUERY, example = "1") }) @GetMapping(value = "/updateForResubmit") public ResponseMsg<Object> updateForResubmit(Integer applyid, HttpServletRequest req) { @@ -207,9 +208,9 @@ } @SysLog() - @ApiOperation(value = "鎻愪氦娴佺▼") - @ApiImplicitParams({ - @ApiImplicitParam(name = "flowId", value = "鐢宠娴佺▼ID", dataType = "Integer", paramType = "query", example = "1") + @Operation(summary = "鎻愪氦娴佺▼") + @Parameters({ + @Parameter(name = "flowId", description = "鐢宠娴佺▼ID", in = ParameterIn.QUERY, example = "1") }) @GetMapping(value = "/updateForSubmit") public ResponseMsg<Object> updateForSubmit(Integer flowId, HttpServletRequest req) { @@ -246,9 +247,9 @@ } @SysLog() - @ApiOperation(value = "鎵撳洖娴佺▼") - @ApiImplicitParams({ - @ApiImplicitParam(name = "flowId", value = "鐢宠娴佺▼ID", dataType = "Integer", paramType = "query", example = "1") + @Operation(summary = "鎵撳洖娴佺▼") + @Parameters({ + @Parameter(name = "flowId", description = "鐢宠娴佺▼ID", in = ParameterIn.QUERY, example = "1") }) @GetMapping(value = "/updateForReject") public ResponseMsg<Object> updateForReject(Integer flowId, HttpServletRequest req) { @@ -279,9 +280,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) }) @ResponseBody @GetMapping(value = "/downloadFile") -- Gitblit v1.9.3