Initial Commit
This commit is contained in:
14
otis/src/app/roles/role.ts
Normal file
14
otis/src/app/roles/role.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { Permission } from './permission';
|
||||
|
||||
export class Role {
|
||||
id: string | undefined;
|
||||
name: string;
|
||||
permissions: Permission[];
|
||||
|
||||
public constructor(init?: Partial<Role>) {
|
||||
this.id = undefined;
|
||||
this.name = '';
|
||||
this.permissions = [];
|
||||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user