diff --git a/frontend/src/api/aihr/case.ts b/frontend/src/api/aihr/case.ts index 28590b29..42e1110a 100644 --- a/frontend/src/api/aihr/case.ts +++ b/frontend/src/api/aihr/case.ts @@ -17,6 +17,7 @@ export type CaseSummaryItem = { }; export type CaseRecord = { + caseId: string; title: string; type: string; status: string; @@ -25,6 +26,18 @@ export type CaseRecord = { summary: string; }; +export type CaseDetailResponse = { + caseId: string; + fileName: string; + title: string; + type: string; + status: string; + time: string; + owner: string; + transcript: string; + summary: string; +}; + export type CaseUploadResponse = { caseId: string; fileName: string; @@ -73,3 +86,17 @@ export function curateKnowledgeCase(data: { caseId: string; criteria: string; li headers: { repeatSubmit: false } }); } + +export function getCaseRecords(limit = 20): Promise> { + return request({ + url: `/api/knowledge/case/records?limit=${limit}`, + method: 'get' + }); +} + +export function getCaseDetail(caseId: string): Promise> { + return request({ + url: `/api/knowledge/case/records/${encodeURIComponent(caseId)}`, + method: 'get' + }); +} diff --git a/frontend/src/views/knowledge/cases.vue b/frontend/src/views/knowledge/cases.vue index 2cdfa274..afde4ccd 100644 --- a/frontend/src/views/knowledge/cases.vue +++ b/frontend/src/views/knowledge/cases.vue @@ -87,17 +87,48 @@ + + + + + + + +