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;

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

    @ApiModelProperty(value = "购物车id(多个用,拼接，若不传则为购物车所有商品)")
    private String cartIds;

    @ApiModelProperty(value = "业务类型(yes 勾选；no 移除)", required = true)
    @StringContains(limitValues = {"yes", "no"}, message = "未知的类型")
    private String cartType;

}
