user/src/modules/users/domain/dtos/create-user.request.ts

24 lines
372 B
TypeScript
Raw Normal View History

2022-12-14 10:37:13 +00:00
import { AutoMap } from '@automapper/classes';
import { IsNotEmpty, IsString } from 'class-validator';
export class CreateUserRequest {
@IsString()
@AutoMap()
uuid: string;
@IsString()
@IsNotEmpty()
@AutoMap()
firstName: string;
@IsString()
@IsNotEmpty()
@AutoMap()
lastName: string;
@IsString()
@IsNotEmpty()
@AutoMap()
email: string;
}