1
0
forked from Yara724/api
Files
yara724-api/src/profile/dto/user/update-profile.dto.ts

28 lines
503 B
TypeScript

import { ApiProperty } from "@nestjs/swagger";
import { IsDateString } from "class-validator";
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;
}