From 7997c4aa1b55d3f51befce366715d43a54df7af5 Mon Sep 17 00:00:00 2001 From: GouJ Date: Mon, 12 Oct 2026 18:57:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=88=86=E9=95=9C=E6=97=B6=E9=95=BF=E5=AE=A1=E8=AE=A1=E5=8F=AA?= =?UTF-8?q?=E8=AF=BB=E6=8E=A5=E5=8F=A3=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/storyboard/api.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/features/storyboard/api.ts b/src/features/storyboard/api.ts index d48754d..0c93c09 100644 --- a/src/features/storyboard/api.ts +++ b/src/features/storyboard/api.ts @@ -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(`${projectPath(id)}/storyboard/duration-audit`, { signal }), /** * 后台重生成指定单集镜头,终态后再读取正式分镜。 * @param id 正式项目 ID