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

25 lines
362 B
TypeScript

import { AutoMap } from '@automapper/classes';
import { IsString } from 'class-validator';
export class CreateUserRequest {
@IsString()
@AutoMap()
uuid?: string;
@IsString()
@AutoMap()
firstName?: string;
@IsString()
@AutoMap()
lastName?: string;
@IsString()
@AutoMap()
email?: string;
@IsString()
@AutoMap()
phone?: string;
}