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/sys/DownlogController.java | 27 ++++++++++++++------------- 1 files changed, 14 insertions(+), 13 deletions(-) diff --git a/se-system/src/main/java/com/terra/system/controller/sys/DownlogController.java b/se-system/src/main/java/com/terra/system/controller/sys/DownlogController.java index ce45b83..894425b 100644 --- a/se-system/src/main/java/com/terra/system/controller/sys/DownlogController.java +++ b/se-system/src/main/java/com/terra/system/controller/sys/DownlogController.java @@ -6,12 +6,13 @@ import com.terra.system.entity.sys.DownlogEntity; import com.terra.system.service.sys.DownlogService; 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 java.sql.Timestamp; import java.util.List; @@ -20,7 +21,7 @@ * 涓嬭浇鏃ュ織 * @author WWW */ -@Api(tags = "杩愮淮绠$悊\\涓嬭浇鏃ュ織") +@Tag(name = "杩愮淮绠$悊\\涓嬭浇鏃ュ織") @RestController @RequestMapping("/downlog") public class DownlogController extends BaseController { @@ -31,14 +32,14 @@ TokenService tokenService; @SysLog() - @ApiOperation(value = "鍒嗛〉鏌ヨ骞惰繑鍥炶褰曟暟") - @ApiImplicitParams({ - @ApiImplicitParam(name = "uname", value = "鐢ㄦ埛鍚�", dataType = "String", paramType = "query", example = "鍛�"), - @ApiImplicitParam(name = "type", value = "绫诲瀷", dataType = "Integer", paramType = "query", example = "3"), - @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-25 17: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 = "type", description = "绫诲瀷", in = ParameterIn.QUERY, example = "3"), + @Parameter(name = "start", description = "寮�濮嬫椂闂�", in = ParameterIn.QUERY, example = "2022-12-09 09:00:00"), + @Parameter(name = "end", description = "缁撴潫鏃堕棿", in = ParameterIn.QUERY, example = "2022-12-25 17:00:00"), + @Parameter(name = "pageSize", description = "姣忛〉鏉℃暟", in = ParameterIn.QUERY, example = "10"), + @Parameter(name = "pageIndex", description = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", in = ParameterIn.QUERY, example = "1") }) @GetMapping(value = "/selectByPageAndCount") public ResponseMsg<Object> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) { -- Gitblit v1.9.3