KKSU
2025-03-18 664184af3e070dee665ee736caffa0297804975f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
 
}