package com.fs.store.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class FsStoreCartParam {
    @Min(value = 1,message = "数量不在合法范围内")
    @Max(value = 9999,message = "数量不在合法范围内")
    @ApiModelProperty(value = "购物车数量")
    private Integer cartNum;


    @NotNull(message = "产品ID有误")
    @ApiModelProperty(value = "产品ID")
    private Long productId;

    //@NotBlank(message = "参数有误")
    @ApiModelProperty(value = "sku的ID")
    private Long attrValueId;

    @ApiModelProperty(value = "是否购买")
    private Integer isBuy=0;


}
