mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-04-11 21:13:16 +08:00
update 统一框架所有主键id均使用雪花id
This commit is contained in:
@@ -58,9 +58,14 @@ public interface SystemConstants {
|
||||
String INNER_LINK = "InnerLink";
|
||||
|
||||
/**
|
||||
* 超级管理员ID
|
||||
* 超级管理员用户ID
|
||||
*/
|
||||
Long SUPER_ADMIN_ID = 1L;
|
||||
Long SUPER_ADMIN_USER_ID = 1761100000000000001L;
|
||||
|
||||
/**
|
||||
* 超级管理员角色ID
|
||||
*/
|
||||
Long SUPER_ADMIN_ROLE_ID = 1761300000000000001L;
|
||||
|
||||
/**
|
||||
* 超级管理员角色 roleKey
|
||||
@@ -75,7 +80,7 @@ public interface SystemConstants {
|
||||
/**
|
||||
* 默认部门 ID
|
||||
*/
|
||||
Long DEFAULT_DEPT_ID = 100L;
|
||||
Long DEFAULT_DEPT_ID = 1761000000000000100L;
|
||||
|
||||
/**
|
||||
* 排除敏感属性字段
|
||||
|
||||
@@ -25,7 +25,12 @@ public interface OssConstant {
|
||||
/**
|
||||
* 系统数据ids
|
||||
*/
|
||||
List<Long> SYSTEM_DATA_IDS = Arrays.asList(1L, 2L, 3L, 4L);
|
||||
List<Long> SYSTEM_DATA_IDS = Arrays.asList(
|
||||
1761900000000000001L,
|
||||
1761900000000000002L,
|
||||
1761900000000000003L,
|
||||
1761900000000000004L
|
||||
);
|
||||
|
||||
/**
|
||||
* 云服务商
|
||||
|
||||
@@ -205,7 +205,7 @@ public class LoginHelper {
|
||||
* @return 是否为超级管理员
|
||||
*/
|
||||
public static boolean isSuperAdmin(Long userId) {
|
||||
return SystemConstants.SUPER_ADMIN_ID.equals(userId);
|
||||
return SystemConstants.SUPER_ADMIN_USER_ID.equals(userId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user