From ea04f59e041c1cfc5ecdc84fdf23d2c4a9ada6f0 Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Fri, 8 Jul 2022 12:28:40 -0300 Subject: [PATCH] FIX: Fixed create user req --- src/modules/users/dtos/entities.ts | 32 ++++++++++++++---------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/modules/users/dtos/entities.ts b/src/modules/users/dtos/entities.ts index fb94328..b6d4420 100644 --- a/src/modules/users/dtos/entities.ts +++ b/src/modules/users/dtos/entities.ts @@ -79,7 +79,21 @@ export class CreateUserReq { @ApiProperty() name: string; @ApiProperty() - username: string; + email: string; + @ApiProperty() + roles: string[]; + @ApiProperty() + jobTitle: string; + @ApiProperty() + department: string; + @ApiProperty() + hierarchy: number; +} +export class CreateUserRes { + @ApiProperty() + id: string; + @ApiProperty() + name: string; @ApiProperty() email: string; @ApiProperty() @@ -99,22 +113,6 @@ export class CreateUserReq { @ApiProperty() updatedAt: string; } -export class CreateUserRes { - @ApiProperty() - id: string; - @ApiProperty() - name: string; - @ApiProperty() - email: string; - @ApiProperty() - roles: string[]; - @ApiProperty() - jobTitle: string; - @ApiProperty() - department: string; - @ApiProperty() - hierarchy: number; -} export class GetAllUsersByCustomerIdReq { @ApiPropertyOptional()