feat(system): 新增普通用户角色并调整第三方登录用户默认角色

- 原来第三方登录用户注册后默认为超管用户,是出于方便演示环境用户查看,本次有 Gitee@hagyao520 大佬反馈不安全,干脆调整此逻辑,感谢大佬提供的普通用户角色 PR
This commit is contained in:
2025-03-20 22:27:51 +08:00
parent 603b12d10d
commit 594ea3208d
5 changed files with 18 additions and 13 deletions

View File

@@ -54,11 +54,21 @@ public class SysConstants {
*/
public static final String SUPER_ROLE_CODE = "admin";
/**
* 普通用户角色编码
*/
public static final String GENERAL_ROLE_CODE = "general";
/**
* 超管角色 ID
*/
public static final Long SUPER_ROLE_ID = 1L;
/**
* 普通用户角色 ID
*/
public static final Long GENERAL_ROLE_ID = 2L;
/**
* 全部权限标识
*/
@@ -74,11 +84,6 @@ public class SysConstants {
*/
public static final String LOGOUT_URI = "/auth/logout";
/**
* 描述类字段后缀
*/
public static final String DESCRIPTION_FIELD_SUFFIX = "String";
private SysConstants() {
}
}