admin
2021-04-07 35a29882f356542dd9c431714c64d277eb7cad40
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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
package com.yeshi.buwan.domain;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
 
import com.google.gson.annotations.Expose;
import org.springframework.data.annotation.Id;
 
/**
 * 视频信息
 *
 * @author Administrator
 */
@Entity
public class VideoInfo implements Serializable, Comparable {
    //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;
 
 
    /**
     *
     */
    private static final long serialVersionUID = 1L;
 
    @Id
    @Expose
    private String id;
 
    @Expose
    private String tag;
 
    private String totalNumber;// 所有集数
 
    @Expose
    private Long createtime;
 
    private String updatetime;
 
    @Expose
    private String picture;
 
    @Expose
    private String name;
 
    @Expose
    private String introduction;
    @Expose
    private String duration;
 
    @Expose
    private String mainActor;
    @Expose
    private String year;
    @Expose
    private String beizhu;
    @Expose
    private String qulity;
    @Expose
    private String score;
    @Expose
    private String share;// 是否必须分享
 
    private String show;
    @Expose
    private String watchCount;
    private String orderby;
    @Expose
    private String nowNumber;// 更新到了第几集
    @Expose
    private String finish;// 是否更新完了?0-没有 1-更新完了
    private String baseurl;// 专辑的地址c
    private String month;
    private String day;
    @Expose
    private String area;// 地区
    private String focus;// 看点
    private String leafctgs;
    private String director;
    private String keyword;
    @Expose
    private String vpicture;
    @Expose
    private String hpicture;
    private String latestVpicture;
    private String latestHpicture;
    // 内容类型
    private Integer contentType;
    @Expose
    private Boolean canSave;// 0-不能缓存 1-能缓存
    private AdminInfo admin;
    @Expose
    private VideoType videoType;
    @Expose
    private Integer commentCount;
    private Integer latestWatchCount;
    private Integer videocount;
 
 
    //非数据库缓存数据
    @Expose
    private String thirdType = "0";
    @Expose
    private List<VideoResource> resourceList;
    private List<VideoType> typeList;
    @Expose
    private int showType;// 1-长条 2-短条
    @Expose
    private String playPicture;
    //0-免费  1-VIP  2-用券
    //免费类型
    @Expose
    @Transient
    private int free;
 
 
    //0-普清 1-高清
    @Expose
    @Transient
    private int definition;
 
    //搜索结果适用
    @Expose
    private VideoAlbumMoreInfo albumMoreInfo;
 
    //剧集翻页时每一页的大小
    @Expose
    private Integer pageSize;
 
 
    public Integer getPageSize() {
        return pageSize;
    }
 
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
 
    @Transient
    private VideoResourceMapExtraInfo videoResourceMapExtraInfo;
 
 
    public VideoResourceMapExtraInfo getVideoResourceMapExtraInfo() {
        return videoResourceMapExtraInfo;
    }
 
    public void setVideoResourceMapExtraInfo(VideoResourceMapExtraInfo videoResourceMapExtraInfo) {
        this.videoResourceMapExtraInfo = videoResourceMapExtraInfo;
    }
 
    public VideoAlbumMoreInfo getAlbumMoreInfo() {
        return albumMoreInfo;
    }
 
    public void setAlbumMoreInfo(VideoAlbumMoreInfo albumMoreInfo) {
        this.albumMoreInfo = albumMoreInfo;
    }
 
    public Integer getVideocount() {
        return videocount;
    }
 
    public void setVideocount(Integer videocount) {
        this.videocount = videocount;
    }
 
    public Integer getLatestWatchCount() {
        return latestWatchCount;
    }
 
    public void setLatestWatchCount(Integer latestWatchCount) {
        this.latestWatchCount = latestWatchCount;
    }
 
    public String getLatestVpicture() {
        return latestVpicture;
    }
 
    public void setLatestVpicture(String latestVpicture) {
        this.latestVpicture = latestVpicture;
    }
 
    public String getLatestHpicture() {
        return latestHpicture;
    }
 
    public void setLatestHpicture(String latestHpicture) {
        this.latestHpicture = latestHpicture;
    }
 
    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 String getPlayPicture() {
        return playPicture;
    }
 
    public void setPlayPicture(String playPicture) {
        this.playPicture = playPicture;
    }
 
    public int getShowType() {
        return showType;
    }
 
    public void setShowType(int showType) {
        this.showType = showType;
    }
 
    public Integer getContentType() {
        return contentType;
    }
 
    public void setContentType(Integer contentType) {
        this.contentType = contentType;
    }
 
    public String getKeyword() {
        return keyword;
    }
 
    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }
 
    public String getFocus() {
        return focus;
    }
 
    public void setFocus(String focus) {
        this.focus = focus;
    }
 
    public String getLeafctgs() {
        return leafctgs;
    }
 
    public void setLeafctgs(String leafctgs) {
        this.leafctgs = leafctgs;
    }
 
    public List<VideoResource> getResourceList() {
        return resourceList;
    }
 
    public void setResourceList(List<VideoResource> resourceList) {
        this.resourceList = resourceList;
    }
 
    public List<VideoType> getTypeList() {
        return typeList;
    }
 
    public void setTypeList(List<VideoType> typeList) {
        this.typeList = typeList;
    }
 
    public Integer getCommentCount() {
        return commentCount;
    }
 
    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }
 
    public String getArea() {
        return area;
    }
 
    public void setArea(String area) {
        this.area = area;
    }
 
 
    public String getDirector() {
        return director;
    }
 
    public void setDirector(String director) {
        this.director = director;
    }
 
    public String getMonth() {
        return month;
    }
 
    public void setMonth(String month) {
        this.month = month;
    }
 
    public String getDay() {
        return day;
    }
 
    public void setDay(String day) {
        this.day = day;
    }
 
    public String getUpdatetime() {
        return updatetime;
    }
 
    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }
 
    public static long getSerialversionuid() {
        return serialVersionUID;
    }
 
 
    public Boolean getCanSave() {
        return canSave;
    }
 
    public void setCanSave(Boolean canSave) {
        this.canSave = canSave;
    }
 
    public String getTag() {
        return tag;
    }
 
    public void setTag(String tag) {
        this.tag = tag;
    }
 
    public String getTotalNumber() {
        return totalNumber;
    }
 
    public void setTotalNumber(String totalNumber) {
        this.totalNumber = totalNumber;
    }
 
    public String getShare() {
        return share;
    }
 
    public void setShare(String share) {
        this.share = share;
    }
 
    public VideoInfo() {
    }
 
    public VideoInfo(String id) {
        this.id = id;
    }
 
    public String getBaseurl() {
        return baseurl;
    }
 
    public void setBaseurl(String baseurl) {
        this.baseurl = baseurl;
    }
 
    public String getNowNumber() {
        return nowNumber;
    }
 
    public void setNowNumber(String nowNumber) {
        this.nowNumber = nowNumber;
    }
 
    public String getFinish() {
        return finish;
    }
 
    public void setFinish(String finish) {
        this.finish = finish;
    }
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String getThirdType() {
        return thirdType;
    }
 
    public void setThirdType(String thirdType) {
        this.thirdType = thirdType;
    }
 
    public String getOrderby() {
        return orderby;
    }
 
    public void setOrderby(String orderby) {
        this.orderby = orderby;
    }
 
    public String getMainActor() {
        return mainActor;
    }
 
    public void setMainActor(String mainActor) {
        this.mainActor = mainActor;
    }
 
    @ManyToOne
    public VideoType getVideoType() {
        return videoType;
    }
 
    public void setVideoType(VideoType videoType) {
        this.videoType = videoType;
    }
 
    public String getWatchCount() {
        return watchCount;
    }
 
    public void setWatchCount(String watchCount) {
        this.watchCount = watchCount;
    }
 
    public String getShow() {
        return show;
    }
 
    public void setShow(String show) {
        this.show = show;
    }
 
    @Expose
    private List<VideoDetailInfo> videoDetailList = new ArrayList<VideoDetailInfo>();
 
    @OneToMany
    public List<VideoDetailInfo> getVideoDetailList() {
        return videoDetailList;
    }
 
    public void setVideoDetailList(List<VideoDetailInfo> videoDetailList) {
        this.videoDetailList = videoDetailList;
    }
 
    public String getScore() {
        return score;
    }
 
    public void setScore(String score) {
        this.score = score;
    }
 
    public String getPicture() {
        return picture;
    }
 
    public void setPicture(String picture) {
        this.picture = picture;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getIntroduction() {
        return introduction;
    }
 
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
 
    public String getDuration() {
        return duration;
    }
 
    public void setDuration(String duration) {
        this.duration = duration;
    }
 
    public String getYear() {
        return year;
    }
 
    public void setYear(String year) {
        this.year = year;
    }
 
    @ManyToOne
    public AdminInfo getAdmin() {
        return admin;
    }
 
    public void setAdmin(AdminInfo admin) {
        this.admin = admin;
    }
 
    public String getBeizhu() {
        return beizhu;
    }
 
    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }
 
    public String getQulity() {
        return qulity;
    }
 
    public void setQulity(String qulity) {
        this.qulity = qulity;
    }
 
    public Long getCreatetime() {
        return createtime;
    }
 
    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }
 
    // 用作分類統計
 
    private String type;
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public int compareTo(Object o) {
        return 0;
    }
 
    public int getFree() {
        return free;
    }
 
    public void setFree(int free) {
        this.free = free;
    }
 
 
    public int getDefinition() {
        return definition;
    }
 
    public void setDefinition(int definition) {
        this.definition = definition;
    }
 
    public static class VideoAlbumMoreInfo {
        @Expose
        private String name;
        @Expose
        private int jumpPosition;
 
        public VideoAlbumMoreInfo(String name, int jumpPosition) {
            this.name = name;
            this.jumpPosition = jumpPosition;
        }
 
        public String getName() {
            return name;
        }
 
        public void setName(String name) {
            this.name = name;
        }
 
        public int getJumpPosition() {
            return jumpPosition;
        }
 
        public void setJumpPosition(int jumpPosition) {
            this.jumpPosition = jumpPosition;
        }
    }
}