zhangjinli 3 years ago
parent fa6eac89b1
commit 5e5a236f9d

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

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

Loading…
Cancel
Save