feat: save modified subtitle

This commit is contained in:
2024-07-28 00:44:55 +08:00
parent d637442fda
commit c80940312d
7 changed files with 97 additions and 40 deletions

21
typings/types.d.ts vendored
View File

@@ -85,6 +85,18 @@ namespace req {
to_user_id: number
task_id: string
}
/**
* @param sub_type 0为绿幕生成1为PPT生成
* @param sub_content BASE64后的ass字幕字符串
* @param sub_ver optional 字幕版本
*/
interface CourseSubtitleCreate {
sub_type: 0 | 1
task_id: string
sub_content: string
sub_ver?: number
}
}
interface AssistantTemplateList {
@@ -152,6 +164,15 @@ namespace resp {
interface CourseGenDelete {
code: 0 | 1
}
/**
* @param video_sub_id 字幕记录 ID
* @param url 已上传的ass文件URL(文件存放于OSS)
*/
interface CourseSubtitleCreate {
video_sub_id: number
url: string
}
}
}