.
This commit is contained in:
15
root/api/table.js
Normal file
15
root/api/table.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const table = {
|
||||
_sheets({cate, filePath, dbAccount, dbPlatId, catalogs}) {
|
||||
return red.postX('/_table/sheets',{cate, filePath, dbAccount, dbPlatId, catalogs})
|
||||
},
|
||||
sheetsExcel({filePath}) {
|
||||
return table._sheets({cate: "excel", filePath})
|
||||
},
|
||||
sheetMySql({dbPlatId, catalogs}) {
|
||||
return table._sheets({cate: "mysql", dbPlatId, catalogs: JSON.stringify(catalogs)})
|
||||
},
|
||||
|
||||
saveTable({dbPlatId, catalog, tableArr}) {
|
||||
return red.postX('/_table/table_save', {dbPlatId, catalog, tableArr: JSON.stringify(tableArr)})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user