gongzuming
2024-09-19 a768dc3daa04d35fedfbe75c0a59b9b2545b85c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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;
 
}