From abd5db316be6c8f6897a9cb0505459ef5cce7fe5 Mon Sep 17 00:00:00 2001
From: gongzuming <gongzuming>
Date: 星期四, 19 九月 2024 19:07:03 +0800
Subject: [PATCH] 还原
---
src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateVipDTO.java | 24 +++++++++++++++++++-----
1 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateVipDTO.java b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateVipDTO.java
index 6db8384..c06c539 100644
--- a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateVipDTO.java
+++ b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateVipDTO.java
@@ -1,15 +1,13 @@
package com.mzl.flower.dto.request.coupon;
-import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
-import org.springframework.format.annotation.DateTimeFormat;
+import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
-import java.time.LocalDateTime;
@Data
public class CreateCouponTemplateVipDTO {
@@ -44,6 +42,7 @@
*/
@ApiModelProperty(value = "优惠券面值")
@NotNull(message = "优惠券面值不能为空")
+ @Max(value = 99999999,message = "优惠券面值不能超过99999999")
private BigDecimal couponDiscountValue;
/**
@@ -51,6 +50,7 @@
*/
@ApiModelProperty(value = "使用条件")
@NotNull(message = "使用条件不能为空")
+ @Max(value = 99999999,message = "使用条件不能超过99999999")
private BigDecimal minOrderAmount;
@@ -58,7 +58,21 @@
* 会员等级
*/
@ApiModelProperty(value = "会员等级")
- @NotEmpty(message = "会员等级不能为空")
- private String vipGrade;
+ @NotNull(message = "会员等级不能为空")
+ private Integer memberId;
+
+ /**
+ * 领取后有效类型(COUPON_usage_time_type)天、小时、分钟
+ */
+ @ApiModelProperty(value = "领取后有效类型(COUPON_USAGE_TIME_TYPE)")
+ private String usageTimeType;
+
+ /**
+ * 领取后有效时间整数,比如90(天,小时,分钟)
+ */
+ @ApiModelProperty(value = "领取后有效时间整数")
+ @Max(value = 99999999,message = "领取后有效时间不能超过99999999")
+ private Integer usageTimeNum;
+
}
--
Gitblit v1.9.3