package cn.ysk.cashier.dto.shoptable;

import cn.ysk.cashier.dto.order.UserCouponInfoDTO;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

@Data
public class CreateOrderDTO {
    @NotEmpty
    private String masterId;
    @NotNull
    private Integer shopId;
    private String tableId;
    private String note;
    private boolean postPay;
    private Integer orderId;
    @NotEmpty
    private String useType;
    private Integer vipUserId;
    // 使用的优惠券
    @Valid
    private List<UserCouponInfoDTO> userCouponInfos = new ArrayList<>();
    // 使用的积分抵扣数量
    private Integer pointsNum;

}
