知识库历史文件
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user