| package cc.mrbird.febs.mall.entity; | 
|   | 
| import cc.mrbird.febs.common.entity.BaseEntity; | 
| import com.baomidou.mybatisplus.annotation.TableName; | 
| import com.fasterxml.jackson.annotation.JsonFormat; | 
| import lombok.Data; | 
|   | 
| import java.util.Date; | 
|   | 
| @Data | 
| @TableName("mall_member_coupon") | 
| public class MallMemberCoupon extends BaseEntity { | 
|   | 
|     private Long memberId; | 
|     private Long couponId; | 
|     private Long goodsId; | 
|     private String couponName; | 
|     private String couponUuid; | 
|     private String inviteId; | 
|     //1:待使用 2:已使用 3:已过期 | 
|     private Integer state; | 
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|     private Date expireTime; | 
|   | 
|     /** | 
|      * 来源类型 1-默认 2-积分权益 3-失活会员 | 
|      */ | 
|     private Integer fromType; | 
|   | 
| } |