|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import javax.validation.constraints.*; | 
|---|
|  |  |  | import java.math.BigDecimal; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @ApiModel(value = "CouponRuleAddDto", description = "参数类") | 
|---|
|  |  |  | public class CouponRuleAddDto { | 
|---|
|  |  |  | 
|---|
|  |  |  | @NotNull(message = "过期天数不能为空") | 
|---|
|  |  |  | @Min(value = 0, message = "整数字段不能小于0") | 
|---|
|  |  |  | private Integer expireDay; | 
|---|
|  |  |  | private Integer type; | 
|---|
|  |  |  | //满1000减100,满0减50; | 
|---|
|  |  |  | //满足金额 | 
|---|
|  |  |  | @NotNull(message = "满足金额不能为空") | 
|---|
|  |  |  | 
|---|
|  |  |  | @DecimalMax(value = "10000", inclusive = false, message = "字段不能大于10000") | 
|---|
|  |  |  | private BigDecimal realAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //优惠卷IDs | 
|---|
|  |  |  | private List<Long> goodsIds; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|