mirror of
https://github.com/dadosfera/maestro.git
synced 2026-12-03 08:10:04 +00:00
FEAT: new route for updating Roles and changed hierarchy to string
This commit is contained in:
@@ -67,3 +67,19 @@ export class UnassignPermissionsToRoleRes {
|
||||
@ApiProperty()
|
||||
role: Role;
|
||||
}
|
||||
|
||||
export class UpdateRoleReq {
|
||||
@ApiPropertyOptional()
|
||||
name: string;
|
||||
@ApiPropertyOptional()
|
||||
description: string;
|
||||
@ApiPropertyOptional()
|
||||
userIds: string;
|
||||
@ApiPropertyOptional()
|
||||
permissionIds: string;
|
||||
}
|
||||
|
||||
export class UpdateRoleRes {
|
||||
@ApiProperty()
|
||||
role: Role;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user