package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/*
 *项目名: netflix
 *文件名: ArticleView
 *创建者: JavaZou
 *创建时间:2023/6/27 15:19
 */
@Getter
@Setter
@SearchBean(tables = "article a",
		where = "a.deleted is true")
public class ArticleView {
	@DbField("a.id")
	private Long id;

	@DbField("a.name")
	private String name;

	@DbField("a.author")
	private String author;

	@DbField("a.head_img_url")
	private String headImgUrl;

	@DbField("a.img")
	private String img;

	@DbField("a.banner")
	private String banner;

	@DbField("a.content")
	private String content;

	@DbField("a.tv_type")
	private Integer tvType;

	@DbField("a.box_type")
	private Integer boxType;

	@DbField("a.route_type")
	private Integer routeType;

	@DbField("a.dz_num")
	private Integer dzNum;

	@DbField("a.col_num")
	private Integer colNum;

	@DbField("a.status")
	private Boolean status;

	@DbIgnore
	private List<Long> otherArticleIds;

	@DbField("a.created_time")
	private Date createdTime;
}
