Trần Viết Sơn
fix: update dto
3059320
raw
history blame contribute delete
388 Bytes
import { IsNumber, IsOptional, IsString, IsUrl } from 'class-validator';
export class UpdateMenuItemDto {
@IsString()
@IsOptional()
item_name: string;
@IsUrl()
@IsOptional()
image_url: string;
@IsNumber()
@IsOptional()
item_type?: number;
@IsString()
@IsOptional()
description?: string;
@IsNumber()
@IsOptional()
price: number;
}