Spaces:
Sleeping
Sleeping
File size: 516 Bytes
135c51d 17cd84b 135c51d 3cd799a 17cd84b 3cd799a 17cd84b 135c51d 17cd84b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import {
IsString,
IsEmail,
IsMobilePhone,
IsOptional,
IsNumber,
MinLength
} from "class-validator";
export class SignUpDto{
@IsString()
full_name: string;
@IsMobilePhone('vi-VN')
// @IsUnique('phone_number', { message: 'phone number is already registered' })
phone_number: string;
@IsOptional()
@IsEmail()
// @IsUnique('email', { message: 'Email is already registered' })
email?: string;
@IsString()
@MinLength(8)
password: string;
} |