1
This commit is contained in:
26
admin/src/api/system/roleServer.js
Normal file
26
admin/src/api/system/roleServer.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import http from "@/libs/http";
|
||||
class RoleServer {
|
||||
async list() {
|
||||
let res = await http.get("/sys_role/index", {});
|
||||
return res;
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post("/sys_role/add", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post("/sys_role/edit", row);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post("/sys_role/del", row);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
const roleServer = new RoleServer();
|
||||
export default roleServer;
|
||||
Reference in New Issue
Block a user