FIX: get all hierarchies

This commit is contained in:
Gabriel Rosa
2022-07-18 18:20:15 -03:00
parent 4ab955a7a1
commit 57f47d3b2e
5 changed files with 48 additions and 24 deletions
+11
View File
@@ -1,5 +1,11 @@
import { ApiProperty, ApiPropertyOptional, OmitType } from '@nestjs/swagger';
import { RoleDto, UserRole } from 'src/modules/roles/dto/entities';
export class Hierarchy {
@ApiProperty()
id: number;
@ApiProperty()
name: string;
}
export class Customer {
@ApiProperty()
id: string;
@@ -149,3 +155,8 @@ export class SetUserRolesRes {
}
export class SearchUserRes extends GetAllUsersByCustomerIdRes {}
export class GetAllHierarchiesRes {
@ApiProperty({ type: [Hierarchy] })
hierarchies: Hierarchy[];
}