refactor: spring security 代码规范优化

This commit is contained in:
haoxr
2024-12-18 21:45:18 +08:00
parent bd0f42f80b
commit 852961275b
3 changed files with 60 additions and 29 deletions

View File

@@ -39,4 +39,9 @@ public interface SecurityConstants {
* 微信登录路径
*/
String WECHAT_LOGIN_PATH = "/api/v1/auth/wechat-login";
/**
* 角色前缀 Spring Security 的 authorities 角色前缀,用于区分角色和权限
*/
String ROLE_PREFIX = "ROLE_";
}