diff --git a/apps/web/src/pages/editing-planner/types/clip.ts b/apps/web/src/pages/editing-planner/types/clip.ts deleted file mode 100644 index 8602b8318..000000000 --- a/apps/web/src/pages/editing-planner/types/clip.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * 片段数据类型 - */ -import type { TransitionConfig } from "./transition" -import type { SpeedConfig } from "./speed" -import type { TtsConfig } from "./tts" -import type { TrimConfig } from "./trim" - -/** 片段类型 */ -export type ClipType = "voice" | "pip" - -/** 片段数据 — 时间规划 + 类型标记,不绑定任何素材 */ -export interface ClipData { - id: string - type: ClipType // 片段类型:voice(口播)或 pip(混剪) - duration: number // 时长(秒) - startOffset: number // 仅 voice 类型:在口播素材中的起始时间(秒) - /** 素材库素材 ID(main/pip 类型片段使用) */ - media_asset_id?: string - // 保留兼容字段(后端序列化需要) - template_segment_id?: string - script_text?: string - order?: number - /** 配音素材 ID(voice 类型片段使用) */ - voice_asset_id?: string - /** 配音素材文件 URL(voice 类型片段使用) */ - voice_file_url?: string - /** 与前一片段之间的转场效果 */ - transition?: TransitionConfig - /** 播放速度配置 */ - speed?: SpeedConfig - /** TTS 配音配置 */ - tts_config?: TtsConfig - /** 裁剪配置 — 定义素材入点/出点 */ - trim_config?: TrimConfig -}