From 73e913fb24bf163ab9c5332ab960b1eb56a6402b Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 17 七月 2025 13:41:24 +0800 Subject: [PATCH] 修改common的对象引用 --- se-system/src/main/java/com/terra/system/controller/sys/ResLogController.java | 61 +++++++++++++++--------------- 1 files changed, 30 insertions(+), 31 deletions(-) diff --git a/se-system/src/main/java/com/terra/system/controller/sys/ResLogController.java b/se-system/src/main/java/com/terra/system/controller/sys/ResLogController.java index 6f41731..e3cede2 100644 --- a/se-system/src/main/java/com/terra/system/controller/sys/ResLogController.java +++ b/se-system/src/main/java/com/terra/system/controller/sys/ResLogController.java @@ -1,24 +1,23 @@ package com.terra.system.controller.sys; import com.terra.system.annotation.SysLog; -import com.terra.system.controller.all.BaseController; -import com.terra.system.entity.all.ResponseMsg; +import com.terra.common.controller.all.BaseController; +import com.terra.common.entity.all.ResponseMsg; import com.terra.system.entity.sys.ResLogEntity; -import com.terra.system.entity.sys.UserEntity; import com.terra.system.service.sys.ResLogService; 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.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import javax.servlet.http.HttpServletRequest; import java.util.List; @SuppressWarnings("ALL") -@Api(tags = "杩愮淮绠$悊\\璧勬簮鏃ュ織") +@Tag(name = "杩愮淮绠$悊\\璧勬簮鏃ュ織") @RestController @RequestMapping("/resLog") public class ResLogController extends BaseController { @@ -29,9 +28,9 @@ TokenService tokenService; @SysLog() - @ApiOperation(value = "鏌ヨ璁板綍鏁�") - @ApiImplicitParams({ - @ApiImplicitParam(name = "resid", value = "璧勬簮ID", dataType = "Integer", paramType = "query", required = false, example = "") + @Operation(summary = "鏌ヨ璁板綍鏁�") + @Parameters({ + @Parameter(name = "resid", description = "璧勬簮ID", in = ParameterIn.QUERY, required = false, example = "") }) @GetMapping({"/selectCount"}) public ResponseMsg<Integer> selectCount(Integer resid) { @@ -45,11 +44,11 @@ } @SysLog() - @ApiOperation(value = "鍒嗛〉鏌ヨ") - @ApiImplicitParams({ - @ApiImplicitParam(name = "resid", value = "璧勬簮ID", dataType = "Integer", 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 = "resid", description = "璧勬簮ID", 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 = "/selectByPage") public ResponseMsg<List<ResLogEntity>> selectByPage(Integer resid, Integer pageSize, Integer pageIndex) { @@ -67,11 +66,11 @@ } @SysLog() - @ApiOperation(value = "鍒嗛〉鏌ヨ骞惰繑鍥炶褰曟暟") - @ApiImplicitParams({ - @ApiImplicitParam(name = "resid", value = "璧勬簮ID", dataType = "Integer", 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 = "resid", description = "璧勬簮ID", 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<ResLogEntity>> selectByPageAndCount(Integer resid, Integer pageSize, Integer pageIndex) { @@ -94,9 +93,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<ResLogEntity> selectById(int id) { @@ -110,9 +109,9 @@ } @SysLog() - @ApiOperation(value = "鍒犻櫎涓�鏉�") - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") + @Operation(summary = "鍒犻櫎涓�鏉�") + @Parameters({ + @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") }) @GetMapping(value = "/delete") public ResponseMsg<Integer> delete(int id) { @@ -126,9 +125,9 @@ } @SysLog() - @ApiOperation(value = "鍒犻櫎澶氭潯") - @ApiImplicitParams({ - @ApiImplicitParam(name = "ids", value = "ID鏁扮粍", dataType = "Integer", paramType = "query", example = "1,2") + @Operation(summary = "鍒犻櫎澶氭潯") + @Parameters({ + @Parameter(name = "ids", description = "ID鏁扮粍", in = ParameterIn.QUERY, example = "1,2") }) @GetMapping(value = "/deletes") public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { -- Gitblit v1.9.3