.
This commit is contained in:
12
root/api/db.js
Normal file
12
root/api/db.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const db = {
|
||||
catalogList({dbAccount, dbPlatId}) { // database列表
|
||||
console.log(dbAccount)
|
||||
return red.postX('/_db/catalog_list', {dbAccount: JSON.stringify(dbAccount), dbPlatId})
|
||||
},
|
||||
tableList({dbPlatId, catalog}) { // 数据库表列表
|
||||
return red.postX('/_db/table_list', {dbPlatId, catalog})
|
||||
},
|
||||
tableInfo({dbPlatId, catalog, tableName}) {
|
||||
return red.postX('/_db/table_info', {dbPlatId, catalog, tableName})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user