Merge pull request #7629 from dataease/pr@dev-v2@datasource-add-getDsTree-fun

feat(数据准备-数据源): 添加获取数据源目录的函数
This commit is contained in:
jianneng-fit2cloud 2024-01-15 16:55:23 +08:00 committed by GitHub
commit fbe9f2821a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,6 +111,14 @@ export const getDatasetTree = async (data = {}): Promise<IResponse> => {
})
}
export const getDsTree = async (data = {}): Promise<IResponse> => {
return request
.post({ url: '/datasource/tree', data: { ...data, ...{ busiFlag: 'datasource' } } })
.then(res => {
return res?.data
})
}
export const deleteById = (id: number) => request.get({ url: '/datasource/delete/' + id })
export const getById = (id: number) => request.get({ url: '/datasource/get/' + id })