From a768dc3daa04d35fedfbe75c0a59b9b2545b85c4 Mon Sep 17 00:00:00 2001
From: gongzuming <gongzuming>
Date: 星期四, 19 九月 2024 16:59:33 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master-v2'
---
src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java
index 316ead0..fd49d0e 100644
--- a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java
+++ b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java
@@ -6,6 +6,7 @@
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
+import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@@ -85,6 +86,8 @@
* 领取后有效时间整数,比如90(天,小时,分钟)
*/
@ApiModelProperty(value = "领取后有效时间整数")
+ @Min(value = 1,message = "领取后有效时间必须大于等于1")
+ @Max(value = 99999999,message = "领取后有效时间不能超过99999999")
private Integer usageTimeNum;
@@ -127,6 +130,7 @@
@ApiModelProperty(value = "发放数量")
@NotNull(message = "发放数量不能为空")
@Min(value = 1,message = "发放数量必须大于0")
+ @Max(value = 99999999,message = "库存数量不能超过99999999")
private Integer couponAmount;
@@ -136,7 +140,13 @@
@ApiModelProperty(value = "每人限领")
@NotNull(message = "每人限领不能为空")
@Min(value = 1,message = "每人限领必须大于0")
+ @Max(value = 99999999,message = "每人限领不能超过99999999")
private Integer getLimit;
+ /**
+ * 优惠券图片
+ */
+ @ApiModelProperty(value = "优惠券图片")
+ private String imageUrl;
}
--
Gitblit v1.9.3