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/DataQueryController.java | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/se-system/src/main/java/com/terra/system/controller/data/DataQueryController.java b/se-system/src/main/java/com/terra/system/controller/data/DataQueryController.java index c068c81..5b36537 100644 --- a/se-system/src/main/java/com/terra/system/controller/data/DataQueryController.java +++ b/se-system/src/main/java/com/terra/system/controller/data/DataQueryController.java @@ -7,11 +7,13 @@ import com.terra.system.helper.StringHelper; import com.terra.system.service.data.DataQueryService; 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.multipart.MultipartFile; import org.springframework.web.bind.annotation.*; @@ -21,7 +23,7 @@ * 鏁版嵁妫�绱� * @author WWW */ -@Api(tags = "鏁版嵁绠$悊\\鏁版嵁鏌ヨ") +@Tag(name = "鏁版嵁绠$悊\\鏁版嵁鏌ヨ") @RestController @RequestMapping("/dataQuery") public class DataQueryController extends BaseQueryController { @@ -32,11 +34,11 @@ DataQueryService dataQueryService; @SysLog() - @ApiOperation(value = "涓婁紶鏂囦欢") + @Operation(summary = "涓婁紶鏂囦欢") @ResponseBody - @ApiImplicitParams({ - @ApiImplicitParam(name = "tabName", value = "琛ㄥ悕", dataType = "String", paramType = "query", example = "lf.sys_style"), - @ApiImplicitParam(name = "eventid", value = "涓婚敭", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4") + @Parameters({ + @Parameter(name = "tabName", description = "琛ㄥ悕", in = ParameterIn.QUERY, example = "lf.sys_style"), + @Parameter(name = "eventid", description = "涓婚敭", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4") }) @PostMapping(value = "/uploadFiles") public ResponseMsg<Integer> uploadFiles(String tabName, String eventid, @RequestParam("file") MultipartFile[] files, HttpServletRequest req) { -- Gitblit v1.9.3