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;
import java.util.Calendar;

@Entity
@Table(name = "qkj_article")
@Data
@ApiModel
public class QkjArticle implements Serializable {
	private static final long serialVersionUID = -1549091107153552300L;

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

	@ApiModelProperty(value = "文章标题")
	private String title;

	@ApiModelProperty(value = "封面图")
	private String coverImg;

	@ApiModelProperty(value = "文章作者")
	private String author;

	@ApiModelProperty(value = "发布时间")
	private Calendar publishTime;

	@ApiModelProperty(value = "内容（图文/文章url）")
	private String content;

	@ApiModelProperty(value = "文章类型 1：图文  2：地址")
	private Integer type=1;

	@ApiModelProperty(value = "状态 0-草稿 1-上线 2-删除")
	private Integer status = 0;

	@ApiModelProperty(value = "假点击量")
	private Integer click;

	@ApiModelProperty(value = "真点击量")
	private Integer vclick;

	@ApiModelProperty(value = "添加时间")
	private String createTime;
}
