feat(short-drama-agent-front): 接入审核人工确认与延期验证

This commit is contained in:
GJ committed 2026-10-28 16:32:47 +08:00
1 parent 5836b90934
commit c6ef595a8e
23 files changed
+3923 -67

No files matched your search

+10 -1
View File
@@ -73,6 +73,15 @@ export const projectsApi = {
optionalResource(request<DramaState>(`/projects/${encodeURIComponent(id)}/state`, { signal })),
checkpoints: (id: string, signal?: AbortSignal) =>
request<Checkpoint[]>(`/projects/${encodeURIComponent(id)}/checkpoints`, { signal }),
/**
* 用户确认后恢复创作;改写明确携带服务端要求的确认标记。
* @param id 当前项目编号
* @param action 已确认的恢复动作
* @returns 后台任务句柄
*/
resume: (id: string, action: 'resume-generation' | 'resume-rewrite') =>
request<WorkflowExecutionStart>(`/projects/${encodeURIComponent(id)}/${action}`, { method: 'POST' })
request<WorkflowExecutionStart>(`/projects/${encodeURIComponent(id)}/${action}`, {
method: 'POST',
body: action === 'resume-rewrite' ? { confirmed: true } : undefined
})
}