2022-05-18 16:02:29 +08:00
|
|
|
/**
|
|
|
|
* 用户角色枚举
|
|
|
|
*/
|
2022-03-11 13:57:55 +08:00
|
|
|
export declare enum UserRole {
|
|
|
|
normal = "normal",
|
|
|
|
admin = "admin",
|
|
|
|
superadmin = "superadmin"
|
|
|
|
}
|
2022-05-18 16:02:29 +08:00
|
|
|
/**
|
|
|
|
* 用户状态枚举
|
|
|
|
*/
|
2022-03-11 13:57:55 +08:00
|
|
|
export declare enum UserStatus {
|
|
|
|
normal = "normal",
|
|
|
|
locked = "locked"
|
|
|
|
}
|
2022-05-18 16:02:29 +08:00
|
|
|
/**
|
|
|
|
* 用户数据定义
|
|
|
|
*/
|
2022-03-11 13:57:55 +08:00
|
|
|
export interface IUser {
|
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
password?: string;
|
|
|
|
avatar?: string;
|
|
|
|
email?: string;
|
|
|
|
role: UserRole;
|
|
|
|
status: UserStatus;
|
|
|
|
}
|
2022-05-18 16:02:29 +08:00
|
|
|
/**
|
|
|
|
* 登录用户数据定义
|
|
|
|
*/
|
2022-03-11 13:57:55 +08:00
|
|
|
export interface ILoginUser extends IUser {
|
|
|
|
token: string;
|
|
|
|
}
|