|
@@ -0,0 +1,134 @@
|
|
|
+package com.qs.mp.admin.domain.vo;
|
|
|
+
|
|
|
+import com.alibaba.fastjson.annotation.JSONField;
|
|
|
+import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.qs.mp.common.enums.CouponDiscountTypeEnum;
|
|
|
+import com.qs.mp.common.enums.CouponDistributeTypeEnum;
|
|
|
+import com.qs.mp.common.enums.CouponStatusEnum;
|
|
|
+import com.qs.mp.common.enums.CouponTypeEnum;
|
|
|
+import com.qs.mp.common.enums.CouponUseAreaEnum;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @describe 优惠券实体类
|
|
|
+ * @auther quanshu
|
|
|
+ * @create 2022-03-07 20:43:44
|
|
|
+ */
|
|
|
+@Data
|
|
|
+public class CouponVO {
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 主键
|
|
|
+ */
|
|
|
+ private String couponId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 标题
|
|
|
+ */
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 类型;1用户盲票购买优惠券、2用户门店消费优惠券、3经销商盲票采购优惠券
|
|
|
+ */
|
|
|
+ @JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
+ private CouponTypeEnum type;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 图片
|
|
|
+ */
|
|
|
+ private String picUrl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 使用说明
|
|
|
+ */
|
|
|
+ private String description;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 优惠类型;1代金券、2折扣券、3兑换券
|
|
|
+ */
|
|
|
+ @JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
+ private CouponDiscountTypeEnum discountType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 优惠金额(比例)
|
|
|
+ */
|
|
|
+ private Integer discount;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 最低消费金额
|
|
|
+ */
|
|
|
+ private Integer minOrderAmt;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 渠道代金券,渠道承担比例
|
|
|
+ */
|
|
|
+ private Integer channelSharedRate;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 状态;off下架 on正常
|
|
|
+ */
|
|
|
+ @JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
+ private CouponStatusEnum status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 使用范围;0通用 1生成券时指定范围 2发放时动态指定范围
|
|
|
+ */
|
|
|
+ @JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
+ private CouponUseAreaEnum useArea;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发放方式;1系统发放 2用户主动领取
|
|
|
+ */
|
|
|
+ @JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
+ private CouponDistributeTypeEnum distributeType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 叠加使用;0不允许 1允许
|
|
|
+ */
|
|
|
+ private Integer compositeUse;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 有效期天数;从领券后开始多少天有效,0则使用绝对有效期
|
|
|
+ */
|
|
|
+ private Integer dueDays;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 有效期开始日
|
|
|
+ */
|
|
|
+ private Date validStart;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 有效期结束日
|
|
|
+ */
|
|
|
+ private Date validEnd;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 总量;总量为0代表不限量
|
|
|
+ */
|
|
|
+ private Integer quantity;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 已发放量
|
|
|
+ */
|
|
|
+ private Integer distributeQty;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建时间
|
|
|
+ */
|
|
|
+ private Date createdTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新时间
|
|
|
+ */
|
|
|
+ private Date updatedTime;
|
|
|
+
|
|
|
+
|
|
|
+}
|