gongzuming
2024-09-19 a768dc3daa04d35fedfbe75c0a59b9b2545b85c4
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package com.mzl.flower.dto.request.coupon;
 
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
 
/**
 * 积分优惠券
 */
@Data
public class CreateCouponTemplatePointDTO {
 
    @ApiModelProperty(value = "id")
    private String id;
 
    /**
     * 优惠券名称
     */
 
    @ApiModelProperty(value = "优惠券名称")
    @NotEmpty(message = "优惠券名称不能为空")
    private String couponName;
 
 
    /**
     * 优惠券类型(COUPON_TYPE)满减和无门槛
     */
    @ApiModelProperty(value = "优惠券类型")
    @NotEmpty(message = "优惠券类型不能为空")
    private String couponDiscountType;
 
    /**
     * 优惠券描述(使用规则)
     */
    @ApiModelProperty(value = "使用规则")
    @NotEmpty(message = "使用规则不能为空")
    private String couponDescription;
 
    /**
     * 领取后有效类型(COUPON_usage_time_type)天、小时、分钟
     */
    @ApiModelProperty(value = "领取后有效类型(COUPON_USAGE_TYPE)天、小时、分钟")
    @NotEmpty(message = "领取后有效类型不能为空")
    private String usageTimeType;
 
    /**
     * 领取后有效时间整数,比如90(天,小时,分钟)
     */
    @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")
    private BigDecimal minOrderAmount;
 
    /**
     * 优惠券面值  折扣值(百分比或金额)
     */
    @ApiModelProperty(value = "优惠券面值")
    @NotNull(message = "优惠券面值不能为空")
    @Min(value = 1,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;
 
 
 
}