feat: 前端接入首帧人工接受预检查及审核提交接口

This commit is contained in:
GouJ committed 2026-10-10 13:09:53 +08:00
1 parent 112ff719ce
commit 7a82a62242
1 file changed
+22
+22
View File
@@ -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<KeyframeValidationHistoryItem[]>(
`/storyboard-shots/${encodeURIComponent(shotId)}/keyframes/${encodeURIComponent(keyframeId)}/validations`,