Files
backend-service/src/core/dto/update-user.request.ts
T

25 lines
480 B
TypeScript

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;
}