From 7a82a6224261dbc22c64e8df988f5e248ce2986b Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 10 Oct 2026 13:09:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E6=8E=A5=E5=85=A5?= =?UTF-8?q?=E9=A6=96=E5=B8=A7=E4=BA=BA=E5=B7=A5=E6=8E=A5=E5=8F=97=E9=A2=84?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E5=8F=8A=E5=AE=A1=E6=A0=B8=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/production/quality-api.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/features/production/quality-api.ts b/src/features/production/quality-api.ts index 08c2bf5..3162369 100644 --- a/src/features/production/quality-api.ts +++ b/src/features/production/quality-api.ts @@ -87,6 +87,28 @@ export const qualityApi = { `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review`, { signal } ), + /** 人工接受前的零费用安全预检查。 */ + previewKeyframeAccept: (shotId: string, keyframeId: string, validationTaskId: string) => + request<{ canAccept: boolean; expectedPrimaryId: string; requiresManualConfirmation: boolean }>( + `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review/accept/preview`, + { method: 'POST', body: { validationTaskId } } + ), + /** 人工接受会修改主首帧,必须由用户明确确认。 */ + acceptKeyframeReview: (shotId: string, keyframeId: string, body: { + validationTaskId: string; expectedPrimaryId: string; reviewer: string; reason: string + }) => + request<{ reviewId: string; decision: 'accepted'; primaryChanged: boolean }>( + `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review/accept`, + { method: 'POST', body } + ), + /** 人工拒绝只记录审核决定,不删除候选图片。 */ + rejectKeyframeReview: (shotId: string, keyframeId: string, body: { + validationTaskId: string; reviewer: string; reason: string + }) => + request<{ reviewId: string; decision: 'rejected'; primaryChanged: false }>( + `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/quality-review/reject`, + { method: 'POST', body } + ), keyframeHistory: (shotId: string, keyframeId: string, signal?: AbortSignal) => request( `/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/validations`,