init
This commit is contained in:
30
src/api/system/sysModuleServer.js
Normal file
30
src/api/system/sysModuleServer.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import http from "@/utils/http";
|
||||
class SysModuleServer {
|
||||
async all() {
|
||||
let res = await http.get("/sys_menu/all", {});
|
||||
return res;
|
||||
}
|
||||
|
||||
async list(row) {
|
||||
let res = await http.get("/sys_menu/all", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post("/sys_menu/add", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post("/sys_menu/edit", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post("/sys_menu/del", row);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
const sysModuleServer = new SysModuleServer();
|
||||
export default sysModuleServer;
|
||||
Reference in New Issue
Block a user