import { IsOptional } from 'class-validator'; import { Gender } from '../enum/Gender'; import { ApiProperty } from '@nestjs/swagger'; export class UpdateUserRequest { @ApiProperty() @IsOptional() trueName: string; @ApiProperty() @IsOptional() age: number; @ApiProperty() @IsOptional() gender: Gender; @ApiProperty() @IsOptional() avatar: string; @ApiProperty() @IsOptional() occupation: string; @ApiProperty() @IsOptional() address: string; }