feat: 接入分镜单集重生成接口
接入后端正式单集 Storyboard Shot 重生成能力,补齐校验回执、旧 Shot 缓存失效与页面刷新逻辑。
This commit is contained in:
8 files changed
+159
-10
No files matched your search
@@ -7,6 +7,7 @@ import type {
|
||||
ShotReferences,
|
||||
StoryboardBatchInput,
|
||||
StoryboardBatchResult,
|
||||
StoryboardShotRegenerationResult,
|
||||
VisualStateBatchInput
|
||||
} from './types'
|
||||
import type { ShotGenerationSpec } from './generation-spec.types'
|
||||
@@ -23,6 +24,13 @@ function shotPath(id: string) {
|
||||
|
||||
/** Storyboard 正式路由契约;测试路由不暴露为前端生产入口。 */
|
||||
export const storyboardApi = {
|
||||
/** 强制重生成指定单集的镜头拆解;后端校验通过后才覆盖正式 Storyboard。 */
|
||||
regenerateEpisodeShots: (id: string, episodeNo: number) =>
|
||||
request<StoryboardShotRegenerationResult>(`${projectPath(id)}/storyboard-shots/regenerate`, {
|
||||
method: 'POST',
|
||||
body: { episodeNo },
|
||||
timeoutMs: 0
|
||||
}),
|
||||
directions: (id: string, episodeNo: number, signal?: AbortSignal) =>
|
||||
request<EpisodeDirections>(`${projectPath(id)}/storyboard-directions?episodeNo=${episodeNo}`, { signal }),
|
||||
visualStates: (id: string, episodeNo: number, signal?: AbortSignal) =>
|
||||
|
||||
Reference in new issue
Block a user