| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- package com.cyksj.model.entity;
- import lombok.Getter;
- import lombok.Setter;
- import java.math.BigDecimal;
- import java.util.Date;
- /*
- *项目名: netflix
- *文件名: CouponUser
- *创建者: JavaZou
- *创建时间:2022/11/18 11:43
- */
- @Getter
- @Setter
- public class CouponUser extends BaseEntity {
- private Long userId;
- /**
- * 优惠券id
- */
- private Long couponId;
- /**
- * 发放id
- */
- private Long couponActiveId;
- /**
- * 推荐id
- */
- private Long recommendId;
- /**
- * 关联推广id
- */
- private Long popularizeId;
- /**
- * 获取渠道
- */
- private Channel channel;
- /**
- * 折扣卷折扣 用于分销
- */
- private BigDecimal discount;
- /**
- * 优惠券使用状态
- */
- private Status status;
- private Date validStartTime;
- private Date validEndTime;
- @Getter
- public enum Channel {
- recommend("recommend", "推荐渠道"),
- center("unused", "领卷中心"),
- exCode("exCode", "兑换码"),
- wxCorp("wxCorp", "企业微信"),
- manual("manual", "手动发放"),
- lottery("lottery", "抽奖"),
- task("task", "完成任务"),
- equipment("equipment", "实物设备分销"),
- ques_response("ques_response", "问卷回答"),
- corp_bulk_task("corp_bulk_task", "企业微信群发任务"),
- channel_popularize("channel_popularize", "渠道推广"),
- new_welfare("new_welfare", "新人福利"),
- ;
- private String channel;
- private String desc;
- Channel(String channel, String desc) {
- this.channel = channel;
- this.desc = desc;
- }
- }
- @Getter
- public enum Status {
- used("used", "已使用"),
- unused("unused", "未使用"),
- expired("expired", "已过期"),
- invalid("invalid", "已失效"),
- notEffective("notEffective", "未生效"),
- ;
- private String status;
- private String desc;
- Status(String status, String desc) {
- this.status = status;
- this.desc = desc;
- }
- }
- }
|