package com.pcloud.book.applet.entity;

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

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import lombok.Data;

/**
 * 书单推荐书籍(AppletOuterBook)实体类
 *
 * @author makejava
 * @since 2020-08-11 11:51:24
 */
@Data
public class AppletOuterBook extends BaseEntity {
    private static final long serialVersionUID = 283162706407945358L;
    private Long id;
    /**
    * 封面
    */
    private String coverImg;
    /**
    * 书籍名称
    */
    private String bookName;
    /**
    * 出版社
    */
    private String publish;
    /**
    * 作者
    */
    private String author;
    /**
    * isbn
    */
    private String isbn;
    /**
    * 简介
    */
    private String remark;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
    * 链接来源1当当2京东3拼多多
    */
    private Integer linkType;
    /**
    * 跳转链接
    */
    private String linkUrl;

    /**
     * 创建时间
     */
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date createTime;

    private Long agentId;

}