mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-11 21:49:08 +00:00
FIX: changing hierarchy strategy
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user