package com.yami.shop.seckill.api.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @author LGH
 */
@Data
@ApiModel(value= "秒杀确认订单参数")
public class ConfirmParam {

    @NotNull(message = "产品数量不能为空")
    @Min(value = 1,message = "产品数量不能为空")
    @ApiModelProperty(value = "产品数量",required=true)
    private Integer prodCount;

    @NotNull(message = "用户地址id")
    @ApiModelProperty(value = "用户地址id",required=true)
    private Long addrId;

    @NotNull(message = "秒杀商品skuId")
    @ApiModelProperty(value = "秒杀商品skuId",required=true)
    private Long seckillSkuId;

    @ApiModelProperty(value = "推广员使用的推销卡号")
    private String distributionCardNo;
}
