forked from Yara724/api
Initial commit after migration to gitea
This commit is contained in:
31
src/profile/dto/user/update-profile.dto.ts
Normal file
31
src/profile/dto/user/update-profile.dto.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { ApiProperty, ApiSchema } from "@nestjs/swagger";
|
||||
import { IsDateString } from "class-validator";
|
||||
|
||||
@ApiSchema({
|
||||
name: "Update user profile",
|
||||
description: "Users updates their profile via this API.",
|
||||
})
|
||||
export class UpdateUserProfileDtoRq {
|
||||
// @ApiProperty({})
|
||||
// mobile: string;
|
||||
@ApiProperty({
|
||||
type: "string",
|
||||
description: "Birth date of the user",
|
||||
example: "1999-03-05",
|
||||
nullable: true,
|
||||
})
|
||||
@IsDateString()
|
||||
birthDay: string;
|
||||
|
||||
@ApiProperty()
|
||||
gender?: "male" | "female";
|
||||
|
||||
@ApiProperty()
|
||||
city: string;
|
||||
|
||||
@ApiProperty()
|
||||
state: string;
|
||||
|
||||
@ApiProperty()
|
||||
address: string;
|
||||
}
|
||||
Reference in New Issue
Block a user