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.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
import java.util.List;
|
|
@Data
|
@ApiModel("用户优惠券")
|
public class CouponTemplateUserVO extends AbstractTransDTO {
|
|
|
@ApiModelProperty(value = "ID")
|
private String id;
|
|
/**
|
* 优惠券名称
|
*/
|
@ApiModelProperty(value = "优惠券名称")
|
private String couponName;
|
|
/**
|
* 优惠券描述(使用规则)
|
*/
|
@ApiModelProperty(value = "优惠券描述(使用规则)")
|
private String couponDescription;
|
|
/**
|
* 发放数量
|
*/
|
@ApiModelProperty(value = "总数")
|
private Integer couponAmount;
|
|
/**
|
* 优惠券类型(COUPON_TYPE)满减和无门槛
|
*/
|
@ApiModelProperty(value = "优惠券类型(COUPON_TYPE) ")
|
@DictTrans(target = "couponDiscountTypeName",codeType = "COUPON_TYPE")
|
private String couponDiscountType;
|
|
/**
|
* 优惠券面值 折扣值(百分比或金额)
|
*/
|
@ApiModelProperty(value = "优惠券面值")
|
private BigDecimal couponDiscountValue;
|
|
/**
|
* 使用条件,最小订单金额(可选)=》使用条件
|
*/
|
@ApiModelProperty(value = "使用条件")
|
private BigDecimal minOrderAmount;
|
|
|
|
/**
|
* 优惠券状态(COUPON_STATUS)
|
*/
|
@ApiModelProperty(value = "优惠券状态(COUPON_STATUS)")
|
@DictTrans(target = "statusName",codeType = "COUPON_STATUS")
|
private String status;
|
|
|
|
@ApiModelProperty(value = "使用开始时间")
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
|
@DateTimeFormat
|
private LocalDateTime usageStartDate;
|
|
/**
|
* 使用结束时间
|
*/
|
@ApiModelProperty(value = "使用结束时间")
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
|
@DateTimeFormat
|
private LocalDateTime usageEndDate;
|
|
|
/**
|
* 优惠券类型名称 COUPON_TYPE)满减和无门槛
|
*/
|
@ApiModelProperty(value = "优惠券类型名称 ")
|
private String couponDiscountTypeName;
|
|
/**
|
* 状态名称
|
*/
|
@ApiModelProperty(value = "状态名称")
|
private String statusName;
|
|
@ApiModelProperty(value = "操作人")
|
private String createByName;
|
|
@ApiModelProperty(value = "商户列表")
|
List<CouponTemplateCustomerVO> customerList;
|
|
}
|