package cn.ysk.cashier.dto.shoptable;

import lombok.Data;

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

@Data
public class AddCartDTO {
    @NotEmpty
    private String masterId;
    @NotNull
    private Integer productId;
    @NotNull
    private Integer skuId;
    @NotNull
    private Integer shopId;
    private String tableId;
    @NotNull
    @DecimalMin("0.01")
    private BigDecimal num;
    private boolean isPack;
    private boolean isGift;
    private Integer cartId;
    private String note;

    // 用餐类型
    @NotBlank
    private String useType;

    private Integer vipUserId;
}
