update-user.request.ts 480 B

123456789101112131415161718192021222324
  1. import { IsOptional } from 'class-validator';
  2. import { Gender } from '../enum/Gender';
  3. import { ApiProperty } from '@nestjs/swagger';
  4. export class UpdateUserRequest {
  5. @ApiProperty()
  6. @IsOptional()
  7. trueName: string;
  8. @ApiProperty()
  9. @IsOptional()
  10. age: number;
  11. @ApiProperty()
  12. @IsOptional()
  13. gender: Gender;
  14. @ApiProperty()
  15. @IsOptional()
  16. avatar: string;
  17. @ApiProperty()
  18. @IsOptional()
  19. occupation: string;
  20. @ApiProperty()
  21. @IsOptional()
  22. address: string;
  23. }