gongzuming
2024-11-12 24f7f046f8854d63839ad52d0cff34ea45a0f449
src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java
@@ -6,9 +6,7 @@
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@@ -85,6 +83,8 @@
     * 领取后有效时间整数,比如90(天,小时,分钟)
     */
    @ApiModelProperty(value = "领取后有效时间整数")
    @Min(value = 1,message = "领取后有效时间必须大于等于1")
    @Max(value = 99999999,message = "领取后有效时间不能超过99999999")
    private Integer usageTimeNum;
@@ -110,6 +110,8 @@
     */
    @ApiModelProperty(value = "使用条件,满多少钱")
    @NotNull(message = "使用条件不能为空")
    @Max(value = 99999999,message = "使用条件不能超过99999999")
//    @DecimalMin(value = "0.01", inclusive = true,message = "使用条件大于0")
    private BigDecimal minOrderAmount;
    /**
@@ -117,6 +119,8 @@
     */
    @ApiModelProperty(value = "优惠券面值")
    @NotNull(message = "优惠券面值不能为空")
    @DecimalMin(value = "0.01", inclusive = true,message = "优惠券面值大于0")
    @Max(value = 99999999,message = "优惠券面值不能超过99999999")
    private BigDecimal couponDiscountValue;
@@ -127,6 +131,7 @@
    @ApiModelProperty(value = "发放数量")
    @NotNull(message = "发放数量不能为空")
    @Min(value = 1,message = "发放数量必须大于0")
    @Max(value = 99999999,message = "库存数量不能超过99999999")
    private Integer couponAmount;
@@ -136,7 +141,13 @@
    @ApiModelProperty(value = "每人限领")
    @NotNull(message = "每人限领不能为空")
    @Min(value = 1,message = "每人限领必须大于0")
    @Max(value = 99999999,message = "每人限领不能超过99999999")
    private Integer getLimit;
    /**
     * 优惠券图片
     */
    @ApiModelProperty(value = "优惠券图片")
    private String imageUrl;
}