package cn.ysk.cashier.dto.shoptable;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

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

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