feat: 支持API數據機

This commit is contained in:
taojinlong
2022-02-18 17:59:19 +08:00
parent 9fc6cedca3
commit 1bc642dd27
52 changed files with 3792 additions and 320 deletions

View File

@@ -77,6 +77,14 @@ export function listDatasource() {
})
}
export function listApiDatasource() {
return request({
url: '/datasource/list/api',
loading: true,
method: 'get'
})
}
export function getTable(id, hideMsg = false) {
return request({
url: '/dataset/table/get/' + id,

View File

@@ -74,4 +74,13 @@ export function getSchema(data) {
})
}
export function checkApiDatasource(data){
return request({
url: 'datasource/checkApiDatasource',
method: 'post',
loading: false,
data
})
}
export default { dsGrid, addDs, editDs, delDs, validateDs, listDatasource, getSchema }