package cn.ysk.cashier.dto.shoptable;

import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
public class AddTemporaryDishesDTO {
    @NotEmpty
    private String masterId;
    @NotNull
    private Integer shopId;
    private String tableId;
    @NotBlank(message = "菜品名不为空")
    private String name;
    @NotNull(message = "分类不为空")
    private Integer categoryId;
    @Min(value = 0, message = "价格最低为0")
    private BigDecimal price;
    @NotNull
    @DecimalMin(value = "0.01")
    private BigDecimal num;
    @NotBlank(message = "单位不为空")
    private String unit;
    private String note;
    // 用餐类型
    @NotBlank
    private String useType;
    private Integer vipUserId;
}
