YARA-1035

This commit is contained in:
SepehrYahyaee
2026-06-20 14:51:01 +03:30
parent 2e4b10455b
commit 4fabed77e5
27 changed files with 1329 additions and 74 deletions

View File

@@ -0,0 +1,2 @@
export { UserRegisterDto } from "./requests/user-register.dto";
export { UserLoginDto } from "./requests/user-login.dto";

View File

@@ -0,0 +1,16 @@
import {
IsMobilePhone,
IsNumberString,
IsString,
Length,
} from "class-validator";
export class UserLoginDto {
@IsString({ message: "Cellphone number must be string" })
@IsMobilePhone("fa-IR")
cellphoneNumber: string;
@IsNumberString()
@Length(4, 6)
otp: string;
}

View 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;
}