@ -7,6 +7,7 @@ import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class VideoResponse implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@ -26,47 +27,11 @@ public class VideoResponse implements Serializable {
|
||||
// 播放等级
|
||||
private Integer playLevel;
|
||||
|
||||
public void setPlayLevel(Integer playLevel) {
|
||||
this.playLevel = playLevel;
|
||||
}
|
||||
|
||||
public Integer getPlayLevel() {
|
||||
return playLevel;
|
||||
}
|
||||
|
||||
public String getVideoId() {
|
||||
return videoId;
|
||||
}
|
||||
|
||||
public void setVideoId(String videoId) {
|
||||
this.videoId = videoId;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getCoverUrl() {
|
||||
if (StringUtils.isNotEmpty(this.coverUrl)) {
|
||||
return AliyunOSSUtils.generatePresignedUrl(this.coverUrl);
|
||||
public void setCoverUrl(String coverUrl) {
|
||||
if (StringUtils.isNotEmpty(coverUrl)) {
|
||||
this.coverUrl = AliyunOSSUtils.generatePresignedUrl(coverUrl);
|
||||
} else {
|
||||
return AliyunVideoUtils.getVideoCoverUrl(this.videoId);
|
||||
this.coverUrl = AliyunVideoUtils.getVideoCoverUrl(this.videoId);
|
||||
}
|
||||
}
|
||||
|
||||
public void setCoverUrl(String coverUrl) {
|
||||
this.coverUrl = coverUrl;
|
||||
}
|
||||
|
||||
public Integer getPlayNum() {
|
||||
return playNum;
|
||||
}
|
||||
|
||||
public void setPlayNum(Integer playNum) {
|
||||
this.playNum = playNum;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user