gongzuming
2024-09-19 a768dc3daa04d35fedfbe75c0a59b9b2545b85c4
src/main/java/com/mzl/flower/dto/response/coupon/CouponRecordResultVO.java
对比新文件
@@ -0,0 +1,190 @@
package com.mzl.flower.dto.response.coupon;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mzl.flower.base.AbstractTransDTO;
import com.mzl.flower.base.annotation.DictTrans;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
public class CouponRecordResultVO extends AbstractTransDTO {
    @ApiModelProperty(value = "ID ")
    private String id;
    @ApiModelProperty(value = "领取用户类型(COUPON_GET_USER_TYPE)")
    @DictTrans(target = "getUserTypeName",codeType = "COUPON_GET_USER_TYPE")
    private String getUserType;
    /**
     * 领取用户类型(COUPON_GET_USER_TYPE)全部用户,指定用户
     */
    @ApiModelProperty(value = "领取用户类型")
    private String getUserTypeName;
    /**
     * 商户名称
     */
    @ApiModelProperty(value = "店铺名称")
    private String customerName;
    /**
     * 电话
     */
    @ApiModelProperty(value = "联系方式")
    private String tel;
    /**
     * 优惠券名称
     */
    @ApiModelProperty(value = "优惠券名称")
    private String couponName;
    @ApiModelProperty(value = "优惠券类型(COUPON_TYPE) ")
    @DictTrans(target = "couponDiscountTypeName",codeType = "COUPON_TYPE")
    private String couponDiscountType;
    @ApiModelProperty(value = "优惠券类型 ")
    private String couponDiscountTypeName;
    @ApiModelProperty(value = "状态(COUPON_RECORD_STATUS)")
    @DictTrans(target = "statusName",codeType = "COUPON_USED_STATUS")
    private String status;
    /**
     * 状态名称
     */
    @ApiModelProperty(value = "状态名称")
    private String statusName;
    /**
     * 领取结束时间
     */
    @ApiModelProperty(value = "领取时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime createTime;
    /**
     * 有效开始时间
     */
    @ApiModelProperty(value = "有效开始时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime effectiveStart;
    /**
     * 有效结束时间
     */
    @ApiModelProperty(value = "有效结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime effectiveEnd;
    /**
     * 优惠券面值
     */
    @ApiModelProperty(value = "优惠券面值")
    private BigDecimal couponDiscountValue;
    /**
     * 使用条件(满多少钱)
     */
    @ApiModelProperty(value = "使用条件")
    private BigDecimal minOrderAmount;
    /**
     * 领取渠道(COUPON_GET_TYPE)首页弹窗、活动入口、领券中心
     */
    @ApiModelProperty(value = "领取渠道(COUPON_GET_TYPE)")
    @DictTrans(target = "getTypeName",codeType = "COUPON_GET_TYPE")
    private String getType;
    /**
     * 领取渠道(COUPON_GET_TYPE)首页弹窗、活动入口、领券中心
     */
    @ApiModelProperty(value = "领取渠道")
    private String getTypeName;
    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    private String orderNo;
    /**
     * 优惠券ID
     */
    @ApiModelProperty(value = "优惠券ID")
    private String couponId;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private String userId;
    /**
     * 商户ID
     */
    @ApiModelProperty(value = "商户ID")
    private Long customerId;
    /**
     * 使用订单
     */
    @ApiModelProperty(value = "使用订单")
    private String orderId;
    /**
     * 使用时间
     */
    @ApiModelProperty(value = "使用时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime usedTime;
    /**
     * 优惠券种类(活动优惠券、用户优惠券、会员优惠券,积分优惠券)
     */
    @ApiModelProperty(value = "优惠券种类(活动优惠券、用户优惠券、会员优惠券,积分优惠券)")
    @DictTrans(target = "categoryName",codeType = "COUPON_CATEGORY")
    private String category;
    /**
     * 优惠券代码
     */
    @ApiModelProperty(value = "优惠券代码")
    private String couponCode;
    /**
     * 积分数量
     */
    @ApiModelProperty(value = "积分数量")
    private Integer point;
    /**
     * 会员等级
     */
    @ApiModelProperty(value = "会员等级")
    private Integer memberId;
    @ApiModelProperty(value = "优惠券种类名称")
    private String categoryName;
    @ApiModelProperty(value = "优惠券图片")
    private String imageUrl;
}