feat: 前端增加分镜时长审计只读接口类型

This commit is contained in:
GouJ committed 2026-10-12 18:57:02 +08:00
1 parent ee5e49957a
commit 7997c4aa1b
1 file changed
+20
+20
View File
@@ -20,8 +20,28 @@ function shotPath(id: string) {
return `/storyboard-shots/${encodeURIComponent(id)}`
}
/** 已落库分镜的只读时长审计结果。 */
export interface StoryboardDurationAudit {
projectId: string
episodeCount: number
beatCount: number
shotCount: number
warningCount: number
issues: Array<{
episodeNo: number
beatNo: number
shotNo?: number
code: 'beat_duration_mismatch' | 'fragmented_shots' | 'long_shot_review'
severity: 'warning'
message: string
}>
}
/** Storyboard 正式路由契约;测试路由不暴露为前端生产入口。 */
export const storyboardApi = {
/** 读取已落库分镜的时长预警,不触发重新拆镜。 */
durationAudit: (id: string, signal?: AbortSignal) =>
request<StoryboardDurationAudit>(`${projectPath(id)}/storyboard/duration-audit`, { signal }),
/**
* 后台重生成指定单集镜头,终态后再读取正式分镜。
* @param id 正式项目 ID