forked from Yara724/api
YARA-1035
This commit is contained in:
7
src/features/user/dtos/requests/user-register.dto.ts
Normal file
7
src/features/user/dtos/requests/user-register.dto.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { IsMobilePhone, IsString } from "class-validator";
|
||||
|
||||
export class UserRegisterDto {
|
||||
@IsString({ message: "Cellphone number must be string" })
|
||||
@IsMobilePhone("fa-IR")
|
||||
cellphoneNumber: string;
|
||||
}
|
||||
Reference in New Issue
Block a user