Files
admin_core/src/api/system/tableServer.js
张成 88cd8d6e72 1
2025-10-09 23:50:03 +08:00

32 lines
666 B
JavaScript

import http from '@/utils/http'
class TableServer {
async getAll(callback) {
return await http.get('/table/index', {})
}
async add(row, callback) {
return await http.post('/table/add', row)
}
async edit(row, callback) {
return await http.post('/table/edit', row, function(res) {
callback && callback(res)
})
}
async del(row, callback) {
return await http.post('/table/del', row)
}
async autoApi(id) {
return await http.get('/template/api', { id: id })
}
async autoDb(id) {
return await http.get('/template/autoDb', { id: id })
}
}
const tableServer = new TableServer()
export default tableServer