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