Files
serverMontime/src/modules/auth/dto/request-otp.dto.ts
T

11 lines
301 B
TypeScript
Raw Normal View History

2026-05-12 16:17:39 +03:30
import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';
import { IsIranMobile } from '../../../common/decorators/is-iran-mobile.decorator';
2026-05-12 16:17:39 +03:30
2026-05-11 12:40:42 +03:30
export class RequestOtpDto {
2026-05-12 16:17:39 +03:30
@ApiProperty({ example: '09122222222' })
@IsString()
@IsIranMobile()
2026-05-11 12:40:42 +03:30
mobile!: string;
}