Users
This commit is contained in:
19
bookie/src/app/core/user.ts
Normal file
19
bookie/src/app/core/user.ts
Normal file
@ -0,0 +1,19 @@
|
||||
export class User {
|
||||
id: string;
|
||||
name: string;
|
||||
password: string;
|
||||
lockedOut: boolean;
|
||||
roles: UserRole[];
|
||||
perms: string[];
|
||||
isAuthenticated: boolean;
|
||||
|
||||
public constructor(init?: Partial<User>) {
|
||||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
|
||||
export class UserRole {
|
||||
id: string;
|
||||
name: string;
|
||||
enabled: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user