feat: 更新当前用户信息接口
This commit is contained in:
1 parent
79bf751a30
commit
081b3a303d
7 files changed
+121
-1
No files matched your search
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
Reference in new issue
Block a user