package com.pcloud.book.applet.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pcloud.common.entity.BaseEntity;

import java.util.Date;

import lombok.Data;

/**
 * 答案订阅(AnswerSubscribe)实体类
 *
 * @author makejava
 * @since 2020-09-16 15:55:30
 */
@Data
public class AnswerSubscribe extends BaseEntity {
    private static final long serialVersionUID = 635127925467579831L;

    /**
    * 用户id
    */
    private Long wechatUserId;
    /**
    * 书刊id
    */
    private Long bookId;
    /**
    * 渠道id
    */
    private Long channelId;
    /**
    * 编辑id
    */
    private Long adviserId;
    /**
     * 消息发送状态
     */
    private Integer sendState;
    /**
    * 创建时间
    */
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date createTime;

    /**
     * 公众号id
     */
    private Long accountSettingId;
    /**
     * 当前资源数量
     */
    private Integer resourceCount;

}