feat(aihr): complete case learning review loop

This commit is contained in:
2026-07-14 23:41:59 +08:00
parent 4fc394e993
commit 0bfaee7d22
16 changed files with 296 additions and 20 deletions
+12
View File
@@ -38,6 +38,8 @@ export type CaseDetailResponse = {
summary: string;
mediaUrl?: string;
mediaOssId?: number | null;
learningPoints: string[];
supervisorComment: string;
};
export type CaseUploadResponse = {
@@ -52,6 +54,7 @@ export type CaseOrganizeResponse = {
caseId: string;
summary: CaseSummaryItem[];
tags: CaseTag[];
learningPoints: string[];
aiSummary: string;
source: string;
};
@@ -102,3 +105,12 @@ export function getCaseDetail(caseId: string): Promise<ApiResult<CaseDetailRespo
method: 'get'
});
}
export function reviewKnowledgeCase(caseId: string, comment: string): Promise<ApiResult<void>> {
return request({
url: `/api/knowledge/case/records/${encodeURIComponent(caseId)}/review`,
method: 'post',
data: { comment },
headers: { repeatSubmit: false }
});
}