This commit is contained in:
X1627315083@163.com
2026-02-26 10:19:51 +08:00
parent 8ebaa46211
commit ccc6d2cb7b
9 changed files with 123 additions and 26 deletions

View File

@@ -25,4 +25,17 @@ export const versionTree = (data) => {
url: `/api/version/${data.projectId}/chat/tree`,
method: 'get',
})
}
/**
* 获取版本树
* @param data 获取版本树的参数
* @param data.projectId 项目id
* @returns 获取版本树
*/
export const getNodeAncestors = (data) => {
return request({
url: `/api/version/${data.projectId}/chat/node/${data.id}/ancestors`,
method: 'get',
})
}