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

21 lines
315 B
TypeScript
Raw Normal View History

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