Spaces:
Sleeping
Sleeping
File size: 369 Bytes
d9eec61 3059320 d9eec61 3059320 d9eec61 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import { IsNumber, IsOptional, IsString, IsUrl } from 'class-validator';
export class CreateMenuItemDto {
@IsString()
id: string;
@IsString()
item_name: string;
@IsUrl()
image_url: string;
@IsNumber()
@IsOptional()
item_type?: number;
@IsString()
@IsOptional()
description?: string;
@IsNumber()
price: number;
}
|