package com.pcloud.book.giftcoupon.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pcloud.common.entity.BaseEntity;

import java.util.Date;

import javax.xml.bind.annotation.XmlElement;

import lombok.Data;

/**
 * 专享礼券包领取表(GiftReceive)实体类
 *
 * @author makejava
 * @since 2020-04-19 14:59:34
 */
@Data
public class GiftReceive extends BaseEntity {
    private Long wechatUserId;
    
    private Long giftPackageId;

    //权益id
    private Long rightsSettingId;

    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date useTime;

    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm",
            timezone = "GMT+8"
    )
    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }
}