Files
meta-kit/root/api/table.js
2019-04-11 23:04:13 +08:00

15 lines
567 B
JavaScript

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