admin
2021-07-30 a66b556036c2b3936a51fd7b7e54a204eb31dc14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
package com.yeshi.buwan.domain.solr;
 
import com.yeshi.buwan.util.StringUtil;
import org.apache.solr.client.solrj.beans.Field;
 
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;
    }
}