think/packages/domains/src/models/user.ts

37 lines
510 B
TypeScript
Raw Normal View History

2022-03-11 05:57:55 +00:00
/**
*
*/
export enum UserRole {
normal = "normal",
admin = "admin",
superadmin = "superadmin",
}
/**
*
*/
export enum UserStatus {
normal = "normal",
locked = "locked",
}
/**
*
*/
export interface IUser {
id: string;
name: string;
password?: string;
avatar?: string;
email?: string;
role: UserRole;
status: UserStatus;
}
/**
*
*/
export interface ILoginUser extends IUser {
token: string;
}