feat(short-drama-agent-front): 接入人工动作修订与视频版本权限

This commit is contained in:
GJ committed 2026-10-14 13:44:02 +08:00
1 parent 7a60db3ced
commit fa76165960
38 files changed
+2003 -158

No files matched your search

+10 -2
View File
@@ -181,8 +181,16 @@ export const productionApi = {
}),
refreshVideo: (videoId: string, signal?: AbortSignal) =>
request<ShotVideo | null>(`/storyboard-shot-videos/${encodeURIComponent(videoId)}/status`, { signal }),
setPrimaryVideo: (shotId: string, videoId: string) =>
/**
* 按候选后端权限切换主视频,并携带已读取的生效版本作并发检查。
* @param shotId 镜头 ID
* @param videoId 候选 ID
* @param expectedMotionPlanRevisionId 已查询的当前动作版本
* @returns 后端确认后的主视频
*/
setPrimaryVideo: (shotId: string, videoId: string, expectedMotionPlanRevisionId?: string | null) =>
request<ShotVideo | null>(`${shotPath(shotId)}/videos/${encodeURIComponent(videoId)}/primary`, {
method: 'PUT'
method: 'PUT',
body: expectedMotionPlanRevisionId === undefined ? {} : { expectedMotionPlanRevisionId }
})
}