feat(aihr): complete case learning review loop
This commit is contained in:
@@ -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 }
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user