12 lines
468 B
JavaScript
12 lines
468 B
JavaScript
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})
|
|
}
|
|
} |