package com.cirle.scientific.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Data
@Table(name="qkj_recommend")
@ApiModel
public class QkjRecommend  implements Serializable {

	private static final long serialVersionUID = -2041334045273020330L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "主键id")
    private Long id;

	@Column(name = "pos_id")
	@ApiModelProperty(value = "版位Id")
	private Integer posId;

	@Column(name = "rcmd_title")
	@ApiModelProperty(value = "标题")
	private String rcmdTitle;

	@Column(name = "rcmd_imgpath")
	@ApiModelProperty(value = "推荐导图")
	private String rcmdImgpath;

	private Integer rcmdType;// 推荐类型，1：精品课，2：直播，3：资讯文章，4：会议  5：广告

	private String rcmdObjId;// 推荐对象id，如果rcmdType=13(小程序)时，为小程序的APPID

	private String rcmdUrl;//如果rcmdType=13(小程序)时，为小程序的访问路径

	private String rcmdDetailImg;

	private String wxaPath;

	private String wxaAppId;

	private String rcmdDesc;

	private Integer clickNum;

	private Integer personNum;

	private String shareImg;

	private Integer sortNum;// 权重，从大到小

	private Integer status;// 推荐状态，0： 不显示 1：显示

	private String author;//文章作者

	private Integer click = 0; //阅读数
}
