forked from github/dataease
Merge pull request #7629 from dataease/pr@dev-v2@datasource-add-getDsTree-fun
feat(数据准备-数据源): 添加获取数据源目录的函数
This commit is contained in:
commit
fbe9f2821a
@ -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 })
|
||||
|
Loading…
Reference in New Issue
Block a user