Merge branch 'feature/knowledgeBase_yjp' into develop

This commit is contained in:
yujiangping
2026-02-06 17:22:22 +08:00
8 changed files with 485 additions and 60 deletions

View File

@@ -220,6 +220,21 @@ export const createDocumentAndUpload = async ( data: any, params: PathQuery) =>
const response = await request.post(`${apiPrefix}/files/customtext`, data, { params } );
return response as any;
};
// web feishu yuque
export const createSync = async (knowledge_id: string) => {
const response = await request.post(`${apiPrefix}/knowledges/${knowledge_id}/sync`);
return response as any;
};
// check feishu
export const checkFeishuSync = async (params: any) => {
const response = await request.get(`${apiPrefix}/knowledges/check/feishu/auth`, undefined, { params });
return response as any;
};
// check yuque
export const checkYuqueSync = async (params: any) => {
const response = await request.get(`${apiPrefix}/knowledges/check/yuque/auth`, undefined, { params });
return response as any;
};
// 更新文档
export const updateDocument = async (id: string, data: KnowledgeBaseDocumentData) => {
const response = await request.put(`${apiPrefix}/documents/${id}`, data);