mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-21 02:25:56 +08:00
update 优化 调整租户常量命名
This commit is contained in:
parent
8e0a905b80
commit
ea8839b196
@ -26,16 +26,16 @@ public interface TenantConstants {
|
||||
/**
|
||||
* 超级管理员ID
|
||||
*/
|
||||
Long SUPER_ADMIN_ID = 1L;
|
||||
Long TENANT_SUPER_ADMIN_ID = 1L;
|
||||
|
||||
/**
|
||||
* 管理员角色 roleKey
|
||||
* 租户管理员角色 roleKey
|
||||
*/
|
||||
String ADMIN_ROLE_KEY = "admin";
|
||||
String TENANT_ADMIN_ROLE_KEY = "admin";
|
||||
|
||||
/**
|
||||
* 管理员角色名称
|
||||
* 租户管理员角色名称
|
||||
*/
|
||||
String ADMIN_ROLE_NAME = "管理员";
|
||||
String TENANT_ADMIN_ROLE_NAME = "管理员";
|
||||
|
||||
}
|
||||
|
||||
@ -130,4 +130,9 @@ public interface UserConstants {
|
||||
int PASSWORD_MIN_LENGTH = 5;
|
||||
int PASSWORD_MAX_LENGTH = 20;
|
||||
|
||||
/**
|
||||
* 超级管理员ID
|
||||
*/
|
||||
Long SUPER_ADMIN_ID = 1L;
|
||||
|
||||
}
|
||||
|
||||
@ -192,8 +192,8 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
||||
// 创建角色
|
||||
SysRole role = new SysRole();
|
||||
role.setTenantId(tenantId);
|
||||
role.setRoleName(TenantConstants.ADMIN_ROLE_NAME);
|
||||
role.setRoleKey(TenantConstants.ADMIN_ROLE_KEY);
|
||||
role.setRoleName(TenantConstants.TENANT_ADMIN_ROLE_NAME);
|
||||
role.setRoleKey(TenantConstants.TENANT_ADMIN_ROLE_KEY);
|
||||
role.setRoleSort(1);
|
||||
role.setStatus(TenantConstants.NORMAL);
|
||||
sysRoleMapper.insert(role);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user