mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 14:20:21 +08:00
17 lines
499 B
TypeScript
17 lines
499 B
TypeScript
import { transformObjectToOption } from './_shared';
|
|
|
|
export const loginModuleLabels: Record<UnionKey.LoginModule, string> = {
|
|
'pwd-login': '账密登录',
|
|
'code-login': '手机验证码登录',
|
|
register: '注册',
|
|
'reset-pwd': '重置密码',
|
|
'bind-wechat': '微信绑定'
|
|
};
|
|
|
|
export const userRoleLabels: Record<Auth.RoleType, string> = {
|
|
super: '超级管理员',
|
|
admin: '管理员',
|
|
user: '普通用户'
|
|
};
|
|
export const userRoleOptions = transformObjectToOption(userRoleLabels);
|