feat(knowledge): add team filtering and improve request handling

This commit is contained in:
2025-10-29 13:24:19 +08:00
parent ef0a99ea30
commit 184c232cc8
3 changed files with 58 additions and 56 deletions

View File

@@ -22,13 +22,13 @@ import type { IRunDocumentRequestBody } from '@/interfaces/request/document';
// 知识库相关API服务
const knowledgeService = {
// ===== 知识库管理 =====
// 获取知识库列表
getKnowledgeList: (
params?: IFetchKnowledgeListRequestParams,
body?: IFetchKnowledgeListRequestBody
) => {
return request.post(api.kb_list, { data: body || {}}, { params });
return request.post(api.kb_list, body || {}, { params });
},
// 创建知识库
@@ -255,7 +255,7 @@ const knowledgeService = {
params?: IFetchKnowledgeListRequestParams,
body?: IFetchDocumentListRequestBody
) => {
return request.post(api.fetchDataPipelineLog, { data: body || {}, params });
return request.post(api.fetchDataPipelineLog, body || {}, { params });
},
// 获取管道详情
@@ -268,7 +268,7 @@ const knowledgeService = {
params?: IFetchKnowledgeListRequestParams,
body?: IFetchDocumentListRequestBody
) => {
return request.post(api.fetchPipelineDatasetLogs, { data: body || {}, params });
return request.post(api.fetchPipelineDatasetLogs, body || {}, { params });
},
// 运行GraphRAG