2025-07-19 12:46:27 +08:00
|
|
|
import { BookImageTextToVideoInfo } from "./bookImageTextToVideoInfo";
|
2025-08-09 18:46:07 +08:00
|
|
|
import { BookImageTextToVideoCategory } from "./bookImageTextToVideoCategory";
|
2025-07-19 12:46:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
export class BookImageTextToVideoIndex {
|
|
|
|
|
|
|
|
|
|
bookImageTextToVideoInfo: BookImageTextToVideoInfo;
|
2025-08-09 18:46:07 +08:00
|
|
|
bookImageTextToVideoCategory: BookImageTextToVideoCategory
|
2025-07-19 12:46:27 +08:00
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
|
this.bookImageTextToVideoInfo = new BookImageTextToVideoInfo();
|
2025-08-09 18:46:07 +08:00
|
|
|
this.bookImageTextToVideoCategory = new BookImageTextToVideoCategory();
|
2025-07-19 12:46:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//#region Info
|
|
|
|
|
|
|
|
|
|
/** 获取用于视频生成的小说信息列表 根据查询条件返回小说数据,如果指定了bookTaskId,则返回对应小说的单个任务数据 否则返回所有启用了视频生成功能的小说及其任务数据 */
|
|
|
|
|
GetVideoBookInfoList = async (condition: BookVideo.BookVideoInfoListQuertCondition) => await this.bookImageTextToVideoInfo.GetVideoBookInfoList(condition)
|
|
|
|
|
|
2025-08-09 18:46:07 +08:00
|
|
|
|
|
|
|
|
/** 获取小说图片和视频生成的进度信息 根据提供的参数查询指定小说或小说任务的图片和视频生成进度 */
|
2025-07-19 12:46:27 +08:00
|
|
|
GetBookImageAndVideoProgress = async (bookId?: string, bookTaskId?: string) => await this.bookImageTextToVideoInfo.GetBookImageAndVideoProgress(bookId, bookTaskId);
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
2025-08-09 18:46:07 +08:00
|
|
|
//#region Category
|
|
|
|
|
|
|
|
|
|
ReloadVideoTaskInfo = async (bookTaskDetailId: string) => await this.bookImageTextToVideoCategory.ReloadVideoTaskInfo(bookTaskDetailId);
|
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
2025-07-19 12:46:27 +08:00
|
|
|
}
|