felicity-lims/frontend/vite/src/models/auth.ts

44 lines
884 B
TypeScript
Raw Normal View History

2021-11-28 18:42:56 +08:00
export interface IUser {
2022-03-03 07:13:52 +08:00
uid?: number;
userUid?: number;
firstName?: string;
lastName?: string;
email?: string;
mobilePhone?: string;
businessPhone?: string;
groupUid?: number;
group?: IGroup;
role?: string; // group name
groups?: IGroup[];
isActive?: boolean;
isSuperuser?: boolean;
authUid?: number;
auth?: IUserAuth;
2021-11-28 18:42:56 +08:00
}
export interface IUserAuth {
2022-03-03 07:13:52 +08:00
uid?: number;
userName?: string;
isBlocked?: boolean;
userType?: string;
userUid?: number;
password?: string;
passwordc?: string;
2021-11-28 18:42:56 +08:00
}
export interface IPermission {
2022-03-03 07:13:52 +08:00
uid?: number;
action?: string;
target?: string;
active?: boolean;
2022-03-06 02:06:07 +08:00
checked?: boolean;
2021-11-28 18:42:56 +08:00
}
export interface IGroup {
2022-03-03 07:13:52 +08:00
uid?: number;
name?: string;
keyword?: string;
permissions?: IPermission[];
active?: boolean;
pages?: string | string[];
2021-11-28 18:42:56 +08:00
}