From 6691258d52bbf770cdd5b102bd1a206393f86c69 Mon Sep 17 00:00:00 2001 From: stylefeng Date: Thu, 11 Jul 2024 16:21:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.1.9=E3=80=91=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=99=A8=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kernel/sys/api/constants/PermissionCodeConstants.java | 5 +++++ .../security/controller/SecurityStrategyController.java | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/constants/PermissionCodeConstants.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/constants/PermissionCodeConstants.java index 90aeefe3c..d13e713b4 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/constants/PermissionCodeConstants.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/constants/PermissionCodeConstants.java @@ -143,4 +143,9 @@ public interface PermissionCodeConstants { */ String CHANGE_ROLE_BIND_LIMIT = "CHANGE_ROLE_BIND_LIMIT"; + /** + * 密码策略配置权限标识 + */ + String PASSWORD_STRATEGY_CONFIG = "PASSWORD_STRATEGY_CONFIG"; + } diff --git a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/security/controller/SecurityStrategyController.java b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/security/controller/SecurityStrategyController.java index 15014b827..9ccc67432 100644 --- a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/security/controller/SecurityStrategyController.java +++ b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/security/controller/SecurityStrategyController.java @@ -13,6 +13,8 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; +import static cn.stylefeng.roses.kernel.sys.api.constants.PermissionCodeConstants.PASSWORD_STRATEGY_CONFIG; + /** * 安全策略配置 * @@ -20,7 +22,7 @@ import javax.annotation.Resource; * @since 2023/10/4 15:59 */ @RestController -@ApiResource(name = "安全策略配置") +@ApiResource(name = "安全策略配置", requiredPermission = true, requirePermissionCode = PASSWORD_STRATEGY_CONFIG) public class SecurityStrategyController { @Resource