|  |  |  | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import javax.validation.constraints.Min; | 
|---|
|  |  |  | import javax.validation.constraints.NotEmpty; | 
|---|
|  |  |  | import javax.validation.constraints.NotNull; | 
|---|
|  |  |  | import javax.validation.constraints.*; | 
|---|
|  |  |  | import java.math.BigDecimal; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value ="领取后有效时间整数,比如90(天,小时,分钟)" ) | 
|---|
|  |  |  | @NotNull(message = "领取后有效时间不能为空") | 
|---|
|  |  |  | @Min(value = 1,message = "领取后有效时间必须大于等于1") | 
|---|
|  |  |  | @Max(value = 99999999,message = "领取后有效时间不能超过99999999") | 
|---|
|  |  |  | private Integer usageTimeNum; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value = "使用条件") | 
|---|
|  |  |  | @NotNull(message = "使用条件不能为空") | 
|---|
|  |  |  | @Max(value = 99999999,message = "使用条件不能超过99999999") | 
|---|
|  |  |  | //    @DecimalMin(value = "0.01", inclusive = true,message = "使用条件大于0") | 
|---|
|  |  |  | private BigDecimal minOrderAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value = "优惠券面值") | 
|---|
|  |  |  | @NotNull(message = "优惠券面值不能为空") | 
|---|
|  |  |  | @Min(value = 1,message = "优惠券面值大于0") | 
|---|
|  |  |  | @DecimalMin(value = "0.01", inclusive = true,message = "优惠券面值大于0") | 
|---|
|  |  |  | @Max(value = 99999999,message = "优惠券面值不能超过99999999") | 
|---|
|  |  |  | private BigDecimal couponDiscountValue; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "库存") | 
|---|
|  |  |  | @NotNull(message = "库存不能为空") | 
|---|
|  |  |  | @Min(value = 1,message = "库存数量必须大于0") | 
|---|
|  |  |  | @Max(value = 99999999,message = "库存数量不能超过99999999") | 
|---|
|  |  |  | private Integer couponAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "积分数量") | 
|---|
|  |  |  | @NotNull(message = "积分数量不能为空") | 
|---|
|  |  |  | @Min(value = 1,message = "积分数量必须大于0") | 
|---|
|  |  |  | @Max(value = 99999999,message = "积分数量不能超过99999999") | 
|---|
|  |  |  | private Integer point; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|