FIX: changing hierarchy strategy

This commit is contained in:
Gabriel Rosa
2022-07-20 15:17:58 -03:00
parent c61c37b268
commit 3e7581e20c
12 changed files with 205 additions and 71 deletions
+4 -3
View File
@@ -1,8 +1,9 @@
import { ApiProperty, ApiPropertyOptional, OmitType } from '@nestjs/swagger';
import { UserRole } from 'src/modules/roles/dto/entities';
export class Hierarchy {
@ApiProperty()
id: number;
id: string;
@ApiProperty()
name: string;
}
@@ -68,7 +69,7 @@ export class CreateUserReq {
@ApiPropertyOptional()
department?: string;
@ApiPropertyOptional()
hierarchy?: number;
hierarchy?: string;
}
export class CreateUserRes {
@ApiProperty()
@@ -93,7 +94,7 @@ export class UpdateUserReq {
@ApiPropertyOptional()
department?: string;
@ApiPropertyOptional()
hierarchy?: number;
hierarchy?: string;
@ApiPropertyOptional()
roleNames?: string[];
}