feat: 绿幕视频创建和微课视频创建

This commit is contained in:
2024-08-17 17:56:35 +08:00
parent 24629f8720
commit e48a744f60
14 changed files with 797 additions and 41 deletions

56
typings/types.d.ts vendored
View File

@@ -40,6 +40,24 @@ interface DigitalHumanItem {
digital_human_id: number
}
interface GBVideoItem {
id: number
user_id: number
task_id: string
create_time: number
complete_time: number
progress: number
duration?: number
digital_human_id: number
title: string
content: string
bg_img: string
video_url?: string
video_cover?: string
subtitle?: string
speed: number
}
// Common request and response schemas
namespace req {
namespace user {
@@ -115,6 +133,29 @@ namespace req {
page?: number
perpage?: number
}
/**
* @param title 任务标题筛选
*/
interface GBVideoList {
to_user_id: number
page?: number
perpage?: number
title?: string
}
interface GBVideoCreate {
device_id: string
digital_human_id: number
title: string
content: string
bg_img?: string
speed?: number
}
interface GBVideoDelete {
task_id: string
}
}
interface AssistantTemplateList {
@@ -191,6 +232,21 @@ namespace resp {
video_sub_id: number
url: string
}
/**
* @param request_id 任务 ID同 task_id
*/
interface GBVideoCreate {
data_id: string
task_id: string
}
/**
* @param code 1: 删除成功, 0: 删除失败
*/
interface GBVideoDelete {
code: 0 | 1
}
}
}