feat(数据准备-数据源): 添加获取数据源目录的函数

This commit is contained in:
jianneng-fit2cloud 2024-01-15 14:56:11 +08:00
parent fbbb7de86b
commit bfff446cf4

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 })