mirror of https://gitee.com/stylefeng/roses
【8.1.9】更新控制器参数配置
parent
502a239f28
commit
6691258d52
|
@ -143,4 +143,9 @@ public interface PermissionCodeConstants {
|
|||
*/
|
||||
String CHANGE_ROLE_BIND_LIMIT = "CHANGE_ROLE_BIND_LIMIT";
|
||||
|
||||
/**
|
||||
* 密码策略配置权限标识
|
||||
*/
|
||||
String PASSWORD_STRATEGY_CONFIG = "PASSWORD_STRATEGY_CONFIG";
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue