feat(视频更新): 添加视频片段更新检查功能
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good

- 新增TaskUpdateResult类存储任务更新检查结果
- 在VideoTaskRepository中实现checkTaskUpdate方法检查任务更新状态
- 重构GoodsServiceImpl中的视频更新检查逻辑,使用VideoTaskRepository的统一实现
- 在ContentPageVO中添加newSegmentCount字段显示新增片段数
This commit is contained in:
2025-09-18 15:05:25 +08:00
parent fde4deb370
commit 079c5dc540
5 changed files with 180 additions and 120 deletions

View File

@@ -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;

View File

@@ -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;
}