feat(knowledge): add team filtering and improve request handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user