package com.yeshi.buwan.domain.video;
|
|
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 java.util.Date;
|
import java.util.List;
|
|
/**
|
* @author hxh
|
* @title: VideoInfoV2
|
* @description: 视频信息V2版本
|
* @date 2022/3/16 10:50
|
*/
|
@Document(collection = "videoInfoV2")
|
public class VideoInfoV2 {
|
|
//0-免费 1-VIP 2-用券
|
//免费
|
public final static int FREE_TYPE_FREE = 0;
|
//VIP
|
public final static int FREE_TYPE_VIP = 1;
|
//用券
|
public final static int FREE_TYPE_COUPON = 2;
|
|
@Id
|
private String id;
|
//名称
|
@Indexed
|
@DaoQueryCondition(queryType = DaoQueryCondition.QueryType.contains)
|
private String name;
|
|
//分类
|
@DaoQueryCondition(queryType = DaoQueryCondition.QueryType.equal)
|
@Indexed
|
private String category;
|
|
//子分类
|
@DaoQueryCondition(queryType = DaoQueryCondition.QueryType.contains)
|
@Indexed
|
private List<String> leafCategorys;
|
|
@DaoQueryCondition(queryType = DaoQueryCondition.QueryType.contains)
|
@Indexed
|
private List<Integer> leafCategoryIds;
|
|
//资源
|
@DaoQueryCondition(queryType = DaoQueryCondition.QueryType.contains)
|
@Indexed
|
private List<Long> resourceIds;
|
|
//演员
|
@DaoQueryCondition(queryType = DaoQueryCondition.QueryType.contains)
|
@Indexed
|
private List<String> actors;
|
|
//导演
|
@DaoQueryCondition(queryType = DaoQueryCondition.QueryType.contains)
|
@Indexed
|
private List<String> directors;
|
|
//地区
|
@DaoQueryCondition(queryType = DaoQueryCondition.QueryType.contains)
|
@Indexed
|
private List<String> areas;
|
|
//内容类型
|
@DaoQueryCondition
|
@Indexed
|
private Integer contentType;
|
|
//上映日期
|
@Indexed
|
private Date releaseDate;
|
|
//年份
|
@Indexed
|
private Integer year;
|
|
//标签,后续版本会弃用
|
private String tag;
|
|
|
//付费类型
|
@Indexed
|
private Integer feeType;
|
|
//竖图
|
private String vpicture;
|
|
//横图
|
private String hpicture;
|
|
//是否显示
|
@Indexed
|
private Boolean show;
|
//评分
|
private String score;
|
//更新信息
|
private VideoUpdateInfo updateInfo;
|
//创建时间
|
private Date createTime;
|
//更新时间
|
private Date updateTime;
|
|
@Transient
|
private VideoInfoExtraV2 extra;
|
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getCategory() {
|
return category;
|
}
|
|
public void setCategory(String category) {
|
this.category = category;
|
}
|
|
public List<String> getLeafCategorys() {
|
return leafCategorys;
|
}
|
|
public void setLeafCategorys(List<String> leafCategorys) {
|
this.leafCategorys = leafCategorys;
|
}
|
|
public List<Long> getResourceIds() {
|
return resourceIds;
|
}
|
|
public void setResourceIds(List<Long> resourceIds) {
|
this.resourceIds = resourceIds;
|
}
|
|
public List<String> getActors() {
|
return actors;
|
}
|
|
public void setActors(List<String> actors) {
|
this.actors = actors;
|
}
|
|
public List<String> getDirectors() {
|
return directors;
|
}
|
|
public void setDirectors(List<String> directors) {
|
this.directors = directors;
|
}
|
|
public Date getReleaseDate() {
|
return releaseDate;
|
}
|
|
public void setReleaseDate(Date releaseDate) {
|
this.releaseDate = releaseDate;
|
}
|
|
public Integer getYear() {
|
return year;
|
}
|
|
public void setYear(Integer year) {
|
this.year = year;
|
}
|
|
public String getVpicture() {
|
return vpicture;
|
}
|
|
public void setVpicture(String vpicture) {
|
this.vpicture = vpicture;
|
}
|
|
public String getHpicture() {
|
return hpicture;
|
}
|
|
public void setHpicture(String hpicture) {
|
this.hpicture = hpicture;
|
}
|
|
public Boolean getShow() {
|
return show;
|
}
|
|
public void setShow(Boolean show) {
|
this.show = show;
|
}
|
|
public String getScore() {
|
return score;
|
}
|
|
public void setScore(String score) {
|
this.score = score;
|
}
|
|
public VideoUpdateInfo getUpdateInfo() {
|
return updateInfo;
|
}
|
|
public void setUpdateInfo(VideoUpdateInfo updateInfo) {
|
this.updateInfo = updateInfo;
|
}
|
|
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 List<String> getAreas() {
|
return areas;
|
}
|
|
public void setAreas(List<String> areas) {
|
this.areas = areas;
|
}
|
|
public Integer getContentType() {
|
return contentType;
|
}
|
|
public void setContentType(Integer contentType) {
|
this.contentType = contentType;
|
}
|
|
public Integer getFeeType() {
|
return feeType;
|
}
|
|
public void setFeeType(Integer feeType) {
|
this.feeType = feeType;
|
}
|
|
|
public VideoInfoExtraV2 getExtra() {
|
return extra;
|
}
|
|
public void setExtra(VideoInfoExtraV2 extra) {
|
this.extra = extra;
|
}
|
|
public String getTag() {
|
return tag;
|
}
|
|
public void setTag(String tag) {
|
this.tag = tag;
|
}
|
|
public List<Integer> getLeafCategoryIds() {
|
return leafCategoryIds;
|
}
|
|
public void setLeafCategoryIds(List<Integer> leafCategoryIds) {
|
this.leafCategoryIds = leafCategoryIds;
|
}
|
|
public static class VideoUpdateInfo {
|
//最新的集数
|
private String latestEpisode;
|
@Indexed
|
//剧集更新时间
|
private Date episodeUpdateTime;
|
//是否完结
|
private Boolean finish;
|
|
public String getLatestEpisode() {
|
return latestEpisode;
|
}
|
|
public void setLatestEpisode(String latestEpisode) {
|
this.latestEpisode = latestEpisode;
|
}
|
|
public Date getEpisodeUpdateTime() {
|
return episodeUpdateTime;
|
}
|
|
public void setEpisodeUpdateTime(Date episodeUpdateTime) {
|
this.episodeUpdateTime = episodeUpdateTime;
|
}
|
|
public Boolean getFinish() {
|
return finish;
|
}
|
|
public void setFinish(Boolean finish) {
|
this.finish = finish;
|
}
|
}
|
|
}
|