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/CreateCouponTemplateVipDTO.java |   78 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 0 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
new file mode 100644
index 0000000..c06c539
--- /dev/null
+++ b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateVipDTO.java
@@ -0,0 +1,78 @@
+package com.mzl.flower.dto.request.coupon;
+
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import javax.validation.constraints.Max;
+import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.NotNull;
+import java.math.BigDecimal;
+
+@Data
+public class CreateCouponTemplateVipDTO {
+
+    @ApiModelProperty(value = "id")
+    private String id;
+
+    /**
+     * 优惠券名称
+     */
+
+    @ApiModelProperty(value = "优惠券名称")
+    @NotEmpty(message = "优惠券名称不能为空")
+    private String couponName;
+
+    /**
+     * 优惠券描述(使用规则)
+     */
+    @ApiModelProperty(value = "使用规则")
+    @NotEmpty(message = "使用规则不能为空")
+    private String couponDescription;
+
+    /**
+     * 优惠券类型(COUPON_TYPE)满减和无门槛
+     */
+    @ApiModelProperty(value = "优惠券类型")
+    @NotEmpty(message = "优惠券类型不能为空")
+    private String couponDiscountType;
+
+    /**
+     * 优惠券面值  折扣值(百分比或金额)
+     */
+    @ApiModelProperty(value = "优惠券面值")
+    @NotNull(message = "优惠券面值不能为空")
+    @Max(value = 99999999,message = "优惠券面值不能超过99999999")
+    private BigDecimal couponDiscountValue;
+
+    /**
+     * 使用条件,最小订单金额(可选)=》使用条件
+     */
+    @ApiModelProperty(value = "使用条件")
+    @NotNull(message = "使用条件不能为空")
+    @Max(value = 99999999,message = "使用条件不能超过99999999")
+    private BigDecimal minOrderAmount;
+
+
+    /**
+     *  会员等级
+     */
+    @ApiModelProperty(value = "会员等级")
+    @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