16 lines
414 B
TypeScript
16 lines
414 B
TypeScript
import { IsNotEmpty, IsString, IsMobilePhone } from 'class-validator';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class DirectLoginDto {
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
@ApiProperty({ example: '09362532122', description: 'Mobile number' })
|
|
@IsMobilePhone('fa-IR')
|
|
phone: string;
|
|
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
@ApiProperty({ example: 'zhivan', description: 'Restaurant slug' })
|
|
slug: string;
|
|
}
|