package com.yeshi.buwan.domain.solr;
|
|
import com.yeshi.buwan.util.StringUtil;
|
import org.apache.solr.client.solrj.beans.Field;
|
import org.springframework.data.annotation.Id;
|
|
import java.io.Serializable;
|
|
/**
|
* 搜索引擎中保存的专辑对象
|
*/
|
public class SolrShortVideo implements Serializable {
|
@Field
|
private String id;
|
@Field(value = "resource_id")
|
private Integer resourceId;
|
@Field
|
private String name;
|
@Field(value = "name_str")
|
private String nameStr;
|
|
@Field
|
private String picture;
|
//地域
|
@Field(value = "area")
|
private String area;
|
//标签
|
@Field(value = "tag")
|
private String tag;
|
//看点
|
@Field(value = "focus")
|
private String focus;
|
//主分类
|
@Field(value = "root_video_type")
|
private Integer rootVideoType;
|
//分类名称
|
@Field(value = "category_names")
|
private String categoryNames;
|
//时长
|
@Field
|
private String duration;
|
//三方平台更新时间
|
@Field(value = "third_update_time")
|
private Long thirdUpdateTime;
|
//播放链接
|
@Field(value = "play_url")
|
private String playUrl;
|
//本地更新时间
|
@Field(value = "local_update_time")
|
private Long localUpdateTime;
|
|
public static String createId(Integer resourceId, String playUrl) {
|
return "s-" + resourceId + "-" + StringUtil.Md5(playUrl);
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public Integer getResourceId() {
|
return resourceId;
|
}
|
|
public void setResourceId(Integer resourceId) {
|
this.resourceId = resourceId;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getNameStr() {
|
return nameStr;
|
}
|
|
public void setNameStr(String nameStr) {
|
this.nameStr = nameStr;
|
}
|
|
public String getArea() {
|
return area;
|
}
|
|
public void setArea(String area) {
|
this.area = area;
|
}
|
|
public String getTag() {
|
return tag;
|
}
|
|
public void setTag(String tag) {
|
this.tag = tag;
|
}
|
|
public String getFocus() {
|
return focus;
|
}
|
|
public void setFocus(String focus) {
|
this.focus = focus;
|
}
|
|
public Integer getRootVideoType() {
|
return rootVideoType;
|
}
|
|
public void setRootVideoType(Integer rootVideoType) {
|
this.rootVideoType = rootVideoType;
|
}
|
|
public String getCategoryNames() {
|
return categoryNames;
|
}
|
|
public void setCategoryNames(String categoryNames) {
|
this.categoryNames = categoryNames;
|
}
|
|
public String getDuration() {
|
return duration;
|
}
|
|
public void setDuration(String duration) {
|
this.duration = duration;
|
}
|
|
public Long getThirdUpdateTime() {
|
return thirdUpdateTime;
|
}
|
|
public void setThirdUpdateTime(Long thirdUpdateTime) {
|
this.thirdUpdateTime = thirdUpdateTime;
|
}
|
|
public String getPlayUrl() {
|
return playUrl;
|
}
|
|
public void setPlayUrl(String playUrl) {
|
this.playUrl = playUrl;
|
}
|
|
public Long getLocalUpdateTime() {
|
return localUpdateTime;
|
}
|
|
public void setLocalUpdateTime(Long localUpdateTime) {
|
this.localUpdateTime = localUpdateTime;
|
}
|
|
public String getPicture() {
|
return picture;
|
}
|
|
public void setPicture(String picture) {
|
this.picture = picture;
|
}
|
}
|