admin
2025-02-20 f537abe9f3646c739beaf15076246a2f71a347e9
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
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;
        }
    }
 
}