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/CreateCouponRecordDTO.java |   75 +++++++++++++++++++++++++++++++++++++
 1 files changed, 75 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..b5e7334
--- /dev/null
+++ b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponRecordDTO.java
@@ -0,0 +1,75 @@
+package com.mzl.flower.dto.request.coupon;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.NotNull;
+
+@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")
+    @NotNull(message = "商户ID不能为空")
+    private Long 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