This commit is contained in:
2025-08-18 20:12:57 +03:00
parent cc0b793000
commit 9f6fca6dac
24 changed files with 11283 additions and 117 deletions

22
src/dto/register.dto.ts Normal file
View 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;
}