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 com.mzl.flower.entity.coupon.CouponTemplateDO;
|
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;
|
|
|
}
|