ruoyi-plus-soybean/src/typings/business.d.ts

24 lines
582 B
TypeScript
Raw Normal View History

/** 用户相关模块 */
declare namespace Auth {
2022-01-05 01:35:32 +08:00
/**
2022-03-30 01:19:37 +08:00
* ()
* - super: ()
2022-01-05 01:35:32 +08:00
* - admin: 管理员
* - test: 测试
2022-03-30 01:19:37 +08:00
* - normal: 普通用户
2022-01-05 01:35:32 +08:00
*/
2022-03-30 01:19:37 +08:00
type RoleType = 'super' | 'admin' | 'test' | 'normal';
2022-01-05 01:35:32 +08:00
/** 用户信息 */
interface UserInfo {
/** 用户id */
userId: string;
/** 用户名 */
userName: string;
/** 用户手机号 */
userPhone: string;
2022-01-05 01:35:32 +08:00
/** 用户角色类型 */
userRole: RoleType;
}
}