知识库历史文件

This commit is contained in:
2025-12-20 17:12:42 +08:00
parent dfd9bb8b95
commit 62850717eb
59 changed files with 2351 additions and 276 deletions

View File

@@ -1,6 +1,6 @@
import { api } from '@/api/index'
import type { ResultDomain, PageRequest } from '@/types'
import type { TbKnowledge, TbKnowledgeFile, SegmentRequestBody, DocumentStatusRequestBody } from '@/types/ai'
import type { TbKnowledge, TbKnowledgeFile, KnowledgeFileVO, SegmentRequestBody, DocumentStatusRequestBody } from '@/types/ai'
/**
* @description AI知识库相关接口
@@ -171,8 +171,8 @@ export const aiKnowledgeAPI = {
* 获取文件历史版本
* @param fileRootId 文件根ID
*/
async getFileHistory(fileRootId: string): Promise<ResultDomain<TbKnowledgeFile>> {
const response = await api.get<TbKnowledgeFile>(`${this.baseUrl}/file/${fileRootId}/history`)
async getFileHistory(fileRootId: string): Promise<ResultDomain<KnowledgeFileVO[]>> {
const response = await api.get<KnowledgeFileVO[]>(`${this.baseUrl}/file/${fileRootId}/history`)
return response.data
},