You've already forked FrameTour-BE
- 新增TaskUpdateResult类存储任务更新检查结果 - 在VideoTaskRepository中实现checkTaskUpdate方法检查任务更新状态 - 重构GoodsServiceImpl中的视频更新检查逻辑,使用VideoTaskRepository的统一实现 - 在ContentPageVO中添加newSegmentCount字段显示新增片段数
This commit is contained in:
@@ -27,8 +27,8 @@ public class ContentPageVO {
|
||||
private Long contentId;
|
||||
// 模版id
|
||||
private Long templateId;
|
||||
// 模版封面图片 contentType为0或1时才有值
|
||||
private String templateCoverUrl;
|
||||
private Integer newSegmentCount;
|
||||
// 是否购买:0未购买,1已购买
|
||||
private Integer isBuy;
|
||||
private BigDecimal duration;
|
||||
|
@@ -0,0 +1,30 @@
|
||||
package com.ycwl.basic.model.repository;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 任务更新检查结果
|
||||
* @author Claude
|
||||
*/
|
||||
@Data
|
||||
public class TaskUpdateResult {
|
||||
/**
|
||||
* 是否可以更新
|
||||
*/
|
||||
private boolean canUpdate;
|
||||
|
||||
/**
|
||||
* 新增片段数量
|
||||
*/
|
||||
private int newSegmentCount;
|
||||
|
||||
/**
|
||||
* 当前总片段数量
|
||||
*/
|
||||
private int totalSegmentCount;
|
||||
|
||||
/**
|
||||
* 原始片段数量
|
||||
*/
|
||||
private int originalSegmentCount;
|
||||
}
|
Reference in New Issue
Block a user