package com.zbkj.common.request;

import com.zbkj.common.annotation.StringContains;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BatchCartRequest对象", description="BatchCartRequest")
public class BatchCartRequest {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "购物车商品信息（cartType=default，必传）")
    private List<CartRequest> cartList;

    @ApiModelProperty(value = "业务编号(cartType=setmeal，传 楼层id)")
    private String business;

    @ApiModelProperty(value = "业务类型(default 默认； setmeal 套餐)", required = true)
    @StringContains(limitValues = {"default","setmeal"}, message = "未知的类型")
    private String cartType;

}
