| package cc.mrbird.febs.mall.dto; | 
|   | 
| import io.swagger.annotations.ApiModel; | 
| import lombok.Data; | 
|   | 
| import javax.validation.constraints.*; | 
| import java.math.BigDecimal; | 
| import java.util.List; | 
|   | 
| @Data | 
| @ApiModel(value = "CouponRuleAddDto", description = "参数类") | 
| public class CouponRuleAddDto { | 
|   | 
|     @NotBlank(message = "名称不能为空") | 
|     private String name; | 
|     //过期天数 | 
|     @NotNull(message = "过期天数不能为空") | 
|     @Min(value = 0, message = "整数字段不能小于0") | 
|     private Integer expireDay; | 
|     private Integer type; | 
|     //满1000减100,满0减50; | 
|     //满足金额 | 
|     @NotNull(message = "满足金额不能为空") | 
|     @DecimalMin(value = "0", message = "字段不能小于0") | 
|     @DecimalMax(value = "10000", inclusive = false, message = "字段不能大于10000") | 
|     private BigDecimal costAmount; | 
|     //减免金额 | 
|     @NotNull(message = "减免金额不能为空") | 
|     @DecimalMin(value = "0", inclusive = false, message = "字段不能小于0") | 
|     @DecimalMax(value = "10000", inclusive = false, message = "字段不能大于10000") | 
|     private BigDecimal realAmount; | 
|   | 
|     //优惠卷IDs | 
|     private List<Long> goodsIds; | 
|   | 
| } |