From fcf0c3fdc539f11d0990e136250f4d20738292d5 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Mon, 4 Mar 2024 00:03:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8D=95=E7=8B=AC=E6=B7=BB=E5=8A=A0Authorization(?= =?UTF-8?q?=E5=B7=B2=E9=85=8D=E7=BD=AE=E5=85=A8=E5=B1=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/SysDictController.java | 1 - .../system/controller/SysMenuController.java | 17 ++++++++-------- .../system/controller/SysRoleController.java | 20 +++++++++---------- 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/youlai-system/system-boot/src/main/java/com/youlai/system/controller/SysDictController.java b/youlai-system/system-boot/src/main/java/com/youlai/system/controller/SysDictController.java index 5a3bfc15d..6f51be2f7 100644 --- a/youlai-system/system-boot/src/main/java/com/youlai/system/controller/SysDictController.java +++ b/youlai-system/system-boot/src/main/java/com/youlai/system/controller/SysDictController.java @@ -15,7 +15,6 @@ import com.youlai.system.service.SysDictService; import com.youlai.system.service.SysDictTypeService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; -import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springdoc.core.annotations.ParameterObject; diff --git a/youlai-system/system-boot/src/main/java/com/youlai/system/controller/SysMenuController.java b/youlai-system/system-boot/src/main/java/com/youlai/system/controller/SysMenuController.java index 6f6c7ee3d..c5df5f31f 100644 --- a/youlai-system/system-boot/src/main/java/com/youlai/system/controller/SysMenuController.java +++ b/youlai-system/system-boot/src/main/java/com/youlai/system/controller/SysMenuController.java @@ -10,7 +10,6 @@ import com.youlai.system.model.vo.RouteVO; import com.youlai.system.service.SysMenuService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; -import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -36,28 +35,28 @@ public class SysMenuController { private final SysMenuService menuService; - @Operation(summary = "菜单列表",security = {@SecurityRequirement(name = "Authorization")}) + @Operation(summary = "菜单列表") @GetMapping public Result> listMenus( @ParameterObject MenuQuery queryParams) { List menuList = menuService.listMenus(queryParams); return Result.success(menuList); } - @Operation(summary = "菜单下拉列表",security = {@SecurityRequirement(name = "Authorization")}) + @Operation(summary = "菜单下拉列表") @GetMapping("/options") public Result listMenuOptions() { List