FEAT: new routes do add or remove permisisons from role

This commit is contained in:
Gabriel Rosa
2022-07-12 12:11:03 -03:00
parent b9612609d9
commit 398360fadb
3 changed files with 73 additions and 4 deletions
+22
View File
@@ -40,6 +40,28 @@ export class User {
@ApiProperty()
updatedAt: string;
}
export class UserWithoutRoles {
@ApiProperty()
id: string;
@ApiProperty()
name: string;
@ApiProperty()
email: string;
@ApiProperty()
jobTitle: string;
@ApiProperty()
department: string;
@ApiProperty()
hierarchy: number;
@ApiProperty()
customer: Customer;
@ApiProperty()
mfaStatus: string;
@ApiProperty()
createdAt: string;
@ApiProperty()
updatedAt: string;
}
export class UserByCustomer {
@ApiProperty({ type: [Role] })
roles: Role[];