feat(常量): 添加超级管理员ID和启用状态常量

在核心常量文件中添加 SUPERADMIN_USER_ID 和 EnableStatus 常量
在用户管理页面中使用新常量替代硬编码值
This commit is contained in:
dap
2026-01-15 09:54:42 +08:00
parent 35c96b3a9e
commit b84eabf1c9
2 changed files with 19 additions and 4 deletions

View File

@@ -36,3 +36,16 @@ export const BUSINESS_SUCCESS_CODE = 200;
* 未授权 状态码(登录超时)
*/
export const UNAUTHORIZED_CODE = 401;
/**
* 超管用户ID
*/
export const SUPERADMIN_USER_ID = 1;
/**
* 对应 字典-S系统开关的状态
*/
export const EnableStatus = {
Enable: '0',
Disable: '1',
};