think/packages/domains/lib/models/user.d.ts

26 lines
419 B
TypeScript
Raw Normal View History

2022-05-18 08:02:29 +00:00
/**
*
*/
2022-03-11 05:57:55 +00:00
export declare enum UserStatus {
normal = "normal",
locked = "locked"
}
2022-05-18 08:02:29 +00:00
/**
*
*/
2022-03-11 05:57:55 +00:00
export interface IUser {
id: string;
name: string;
password?: string;
avatar?: string;
email?: string;
status: UserStatus;
2022-06-28 09:11:26 +00:00
isSystemAdmin?: boolean;
2022-03-11 05:57:55 +00:00
}
2022-05-18 08:02:29 +00:00
/**
*
*/
2022-03-11 05:57:55 +00:00
export interface ILoginUser extends IUser {
token: string;
}