From 5bb359883bda6f15b6a6937a2c17ac9bbc67ab8e Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期日, 22 九月 2024 17:17:24 +0800
Subject: [PATCH] add:会员成长值规则
---
src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java | 21 ++++-----------------
1 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java
index 12dadb9..1af6f04 100644
--- a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java
+++ b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java
@@ -1,10 +1,10 @@
package com.mzl.flower.dto.request.coupon;
-import com.mzl.flower.base.annotation.DictTrans;
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;
@@ -53,6 +53,7 @@
@ApiModelProperty(value ="领取后有效时间整数,比如90(天,小时,分钟)" )
@NotNull(message = "领取后有效时间不能为空")
@Min(value = 1,message = "领取后有效时间必须大于0")
+ @Max(value = 99999999,message = "领取后有效时间不能超过99999999")
private Integer usageTimeNum;
/**
@@ -60,6 +61,7 @@
*/
@ApiModelProperty(value = "使用条件")
@NotNull(message = "使用条件不能为空")
+ @Max(value = 99999999,message = "使用条件不能超过99999999")
private BigDecimal minOrderAmount;
/**
@@ -68,27 +70,12 @@
@ApiModelProperty(value = "优惠券面值")
@NotNull(message = "优惠券面值不能为空")
@Min(value = 1,message = "优惠券面值大于0")
+ @Max(value = 99999999,message = "优惠券面值不能超过99999999")
private BigDecimal couponDiscountValue;
@ApiModelProperty(value = "指定的用户列表id")
@NotNull(message = "指定的用户列表id不能为空")
private List<Long> pointCostomIdList;
-
- /**
- * 领取后有效类型(COUPON_usage_time_type)天、小时、分钟
- */
- @ApiModelProperty(value = "领取后有效类型(COUPON_USAGE_TIME_TYPE)")
- @DictTrans(target = "usageTimeTypeName",codeType = "COUPON_USAGE_TIME_TYPE")
- private String usageTimeType;
-
- /**
- * 领取后有效时间整数,比如90(天,小时,分钟)
- */
- @ApiModelProperty(value = "领取后有效时间整数")
- private Integer usageTimeNum;
-
- @ApiModelProperty(value = "领取后有效类型名称")
- private String usageTimeTypeName;
}
--
Gitblit v1.9.3