display users and roles
This commit is contained in:
parent
eff79a4697
commit
2d0fb30558
12 changed files with 330 additions and 14 deletions
7
src/viewmodels/admin/role.models.ts
Normal file
7
src/viewmodels/admin/role.models.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { PermissionObject } from "../../type/permissionTypes";
|
||||
|
||||
export interface RoleViewModel {
|
||||
id: number;
|
||||
permissions: PermissionObject;
|
||||
role: string;
|
||||
}
|
13
src/viewmodels/admin/user.models.ts
Normal file
13
src/viewmodels/admin/user.models.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { PermissionObject } from "../../type/permissionTypes";
|
||||
import { RoleViewModel } from "./role.models";
|
||||
|
||||
export interface UserViewModel {
|
||||
id: number;
|
||||
username: string;
|
||||
mail: string;
|
||||
firstname: string;
|
||||
lastname: string;
|
||||
permissions: PermissionObject;
|
||||
roles: Array<RoleViewModel>;
|
||||
permissions_total: PermissionObject;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue