Spaces:
Sleeping
Sleeping
File size: 485 Bytes
8b6297d |
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 27 28 29 30 31 |
import { IsEmail, IsMobilePhone, IsOptional, IsString } from "class-validator";
import { Column } from "typeorm";
export class UpdateUserDto{
@IsOptional()
avatar: string;
@IsOptional()
full_name: string;
@IsOptional()
@IsMobilePhone('vi-VN')
phone_number: string;
@IsOptional()
address: string;
@IsOptional()
@IsEmail()
email: string;
@IsOptional()
role_id: string;
@IsOptional()
hash_password: string;
@IsOptional()
is_valid: boolean;
} |