table number
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsNotEmpty, IsString, ValidateIf } from 'class-validator';
|
||||
|
||||
export class SetTableNumberDto {
|
||||
@ApiPropertyOptional({ description: 'Table number', example: '5' })
|
||||
@ValidateIf((o, value) => value !== null && value !== undefined)
|
||||
@IsString()
|
||||
tableNumber?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user