role perms
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { IsNotEmpty, IsString, IsMobilePhone } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class RequestOtpDto {
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
@ApiProperty({ example: '09362532122', description: 'Mobile number' })
|
||||
@IsMobilePhone('fa-IR')
|
||||
phone: string;
|
||||
}
|
||||
@@ -13,6 +13,6 @@ export class RequestOtpDto {
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
@ApiProperty({ example: '', description: 'Restuarant slug' })
|
||||
@ApiProperty({ example: '', description: 'restaurant slug' })
|
||||
slug: string;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,6 @@ export class VerifyOtpDto {
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
@ApiProperty({ example: '', description: 'Restuarant slug' })
|
||||
@ApiProperty({ example: '', description: 'restaurant slug' })
|
||||
slug: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user