gongzuming
2024-09-19 a768dc3daa04d35fedfbe75c0a59b9b2545b85c4
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;
}