File size: 579 Bytes
bac00ce
b2556e4
bac00ce
 
 
 
 
b2556e4
 
 
bac00ce
 
 
 
b2556e4
 
 
 
 
 
 
 
bac00ce
 
 
 
 
b2556e4
bac00ce
 
 
b2556e4
 
 
 
bac00ce
 
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
32
33
34
35
36
37
38
import { IsEmail, IsMobilePhone, IsOptional, IsString } from "class-validator";
import { Role } from "../../../common/enums/role.enum.js";
export class UpdateUsersDto {

  @IsString()
  id: string;

  @IsOptional()
  avatar: string;

  @IsString()
  @IsOptional()
  full_name?: string;

  @IsMobilePhone('vi-VN')
  @IsOptional()
  phone_number: string

  @IsString()
  @IsOptional()
  address: string;

  @IsEmail()
  @IsOptional()
  email?: string;

  @IsOptional()
  role: Role;

  @IsString()
  @IsOptional()
  hash_password?: string;

  @IsOptional()
  is_valid: boolean;
}