package com.yeshi.buwan.domain.recommend;
|
|
import com.google.gson.annotations.Expose;
|
import com.yeshi.buwan.domain.AdminInfo;
|
import com.yeshi.buwan.domain.HomeType;
|
import com.yeshi.buwan.domain.VideoInfo;
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.annotation.Transient;
|
import org.springframework.data.mongodb.core.index.Indexed;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.yeshi.utils.generater.annotation.admin.DaoQueryCondition;
|
|
import javax.persistence.Entity;
|
import javax.persistence.ManyToOne;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 首页分类下面的视频
|
*
|
* @author Administrator
|
*/
|
@Document(collection = "homeVideoV2")
|
public class HomeVideoV2 implements Serializable {
|
|
//本地视频
|
public final static int FROM_TYPE_LOCAL = 0;
|
//全网搜
|
public final static int FROM_TYPE_INTERNET = 1;
|
//短视频
|
public final static int FROM_TYPE_SHORT = 2;
|
|
|
public HomeVideoV2(String id) {
|
this.id = id;
|
}
|
|
public HomeVideoV2() {
|
}
|
|
@Id
|
@Expose
|
private String id;
|
|
|
@DaoQueryCondition
|
@Indexed
|
private String homeTypeId;
|
|
|
@DaoQueryCondition
|
@Expose
|
@Indexed
|
private String videoId;
|
|
@Expose
|
private String picture;
|
|
@Expose
|
private String tag;
|
|
|
@Expose
|
private Integer orderby;
|
@Expose
|
private Boolean bigPicture;//是否为大图显示
|
|
|
@Indexed
|
@DaoQueryCondition
|
private Integer fromType;//0-本地库 1-全网搜
|
|
private String videoName;
|
|
@Expose
|
private Date createTime;
|
private Date updateTime;
|
private String beizhu;
|
|
|
@Transient
|
@Expose
|
private VideoInfo video;
|
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getHomeTypeId() {
|
return homeTypeId;
|
}
|
|
public void setHomeTypeId(String homeTypeId) {
|
this.homeTypeId = homeTypeId;
|
}
|
|
public VideoInfo getVideo() {
|
return video;
|
}
|
|
public void setVideo(VideoInfo video) {
|
this.video = video;
|
}
|
|
public String getPicture() {
|
return picture;
|
}
|
|
public void setPicture(String picture) {
|
this.picture = picture;
|
}
|
|
public String getTag() {
|
return tag;
|
}
|
|
public void setTag(String tag) {
|
this.tag = tag;
|
}
|
|
public Integer getOrderby() {
|
return orderby;
|
}
|
|
public void setOrderby(Integer orderby) {
|
this.orderby = orderby;
|
}
|
|
public Boolean getBigPicture() {
|
return bigPicture;
|
}
|
|
public void setBigPicture(Boolean bigPicture) {
|
this.bigPicture = bigPicture;
|
}
|
|
public String getVideoId() {
|
return videoId;
|
}
|
|
public void setVideoId(String videoId) {
|
this.videoId = videoId;
|
}
|
|
public Integer getFromType() {
|
return fromType;
|
}
|
|
public void setFromType(Integer fromType) {
|
this.fromType = fromType;
|
}
|
|
public String getVideoName() {
|
return videoName;
|
}
|
|
public void setVideoName(String videoName) {
|
this.videoName = videoName;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public String getBeizhu() {
|
return beizhu;
|
}
|
|
public void setBeizhu(String beizhu) {
|
this.beizhu = beizhu;
|
}
|
}
|