25 lines
362 B
TypeScript
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;
|
|
}
|