zhangjinli 3 years ago
parent fa6eac89b1
commit 5e5a236f9d

@ -100,6 +100,7 @@ public class ReferenceController {
.setCreatAt(LocalDateTime.now())
.setDuration(e.getDuration())
.setFileUrl(url)
.setFileUrlSmall(e.getFileUrlSmall())
.setType(FileTypeUtil.getcontentTypeNum(url.substring(url.lastIndexOf("."))))
);
// ta.add(new TopicActivity().setTitle(param.getTitle()).setCover(param.getCoverUrl()).setCreatAt(LocalDateTime.now())
@ -246,6 +247,8 @@ public class ReferenceController {
private String title;
@Schema(title = "文件地址")
private String fileUrl;
@Schema(title = "文件缩略图(图片超高清时方便预加载)")
private String fileUrlSmall;
@Schema(title = "时长(视频需要)")
private Integer duration;
@Schema(title = "封面图片地址")
@ -314,6 +317,7 @@ public class ReferenceController {
Reference reference = new Reference()
.setTitle(param.getTitle())
.setFileUrl(param.getFileUrl())
.setFileUrlSmall(param.getFileUrlSmall())
.setCoverUrl(param.getCoverUrl())
.setGroupId(param.getGroupId())
.setUpdateAt(LocalDateTime.now());

@ -1,5 +1,6 @@
package com.zh.project0512.model.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -22,4 +23,8 @@ public class FileUploadParamVo implements Serializable {
@Schema(title = "封面地址(视频需要)")
private String cover;
@Schema(title = "文件缩略图(图片超高清时方便预加载)")
@TableField("fileUrlSmall")
private String fileUrlSmall;
}

Loading…
Cancel
Save