WIP
This commit is contained in:
22
src/dto/register.dto.ts
Normal file
22
src/dto/register.dto.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsInt } from 'class-validator';
|
||||
|
||||
export class RegisterDto {
|
||||
@ApiProperty({ required: true })
|
||||
fullName: string;
|
||||
@ApiProperty({ required: true })
|
||||
email: string;
|
||||
@ApiProperty({ required: true })
|
||||
phoneNumber: string;
|
||||
@ApiProperty({ required: true })
|
||||
@IsInt()
|
||||
age: number;
|
||||
@ApiProperty({ required: true })
|
||||
cityOrRegion: string;
|
||||
@ApiProperty({ required: false })
|
||||
hobbies: string;
|
||||
@ApiProperty({ required: false })
|
||||
text: string;
|
||||
@ApiProperty({ required: false })
|
||||
image: string;
|
||||
}
|
||||
Reference in New Issue
Block a user