From b2b82c1308fd2cf71e118ab8df8258f8160f010a Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期四, 29 八月 2024 15:52:17 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master-v2' into master-v2
---
src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponRecordDTO.java | 74 +++++++++++++++++++++++++++++++++++++
1 files changed, 74 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponRecordDTO.java b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponRecordDTO.java
new file mode 100644
index 0000000..4386cad
--- /dev/null
+++ b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponRecordDTO.java
@@ -0,0 +1,74 @@
+package com.mzl.flower.dto.request.coupon;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import javax.validation.constraints.NotEmpty;
+
+@Data
+public class CreateCouponRecordDTO {
+
+ @ApiModelProperty(value = "id")
+ private String id;
+
+ /**
+ * 优惠券ID
+ */
+ @ApiModelProperty(value = "优惠券ID")
+ @NotEmpty(message = "优惠券ID不能为空")
+ private String couponId;
+
+ /**
+ * 用户id
+ */
+
+ @ApiModelProperty(value = "用户id")
+// @NotEmpty(message = "用户id不能为空")
+ private String userId;
+
+ /**
+ * 商户ID
+ */
+ @ApiModelProperty(value = "商户ID")
+ @NotEmpty(message = "商户ID不能为空")
+ private String customerId;
+
+ /**
+ * 状态(coupon_record_status)未使用、已使用、已过期
+ */
+// @ApiModelProperty(value = "状态")
+// private String status;
+
+ /**
+ * 有效开始时间
+ */
+// @ApiModelProperty(value = "有效开始时间")
+// @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
+// @DateTimeFormat
+// @NotNull(message = "有效开始时间不能为空")
+// private LocalDateTime effectiveStart;
+
+ /**
+ * 有效结束时间
+ */
+// @ApiModelProperty(value = "有效结束时间")
+// @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
+// @DateTimeFormat
+// @NotNull(message = "有效结束时间不能为空")
+// private LocalDateTime effectiveEnd;
+
+ /**
+ * 使用订单
+ */
+// @ApiModelProperty(value = "订单号")
+// private String orderId;
+
+ /**
+ * 使用时间
+ */
+// @ApiModelProperty(value = "使用时间")
+// @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
+// @DateTimeFormat
+// private LocalDateTime usedTime;
+
+}
--
Gitblit v1.9.3