1
This commit is contained in:
31
admin/src/api/subscription/plan_server.js
Normal file
31
admin/src/api/subscription/plan_server.js
Normal file
@@ -0,0 +1,31 @@
|
||||
class PlanServer {
|
||||
async page(row) {
|
||||
return window.framework.http.post("/biz_plan/page", row);
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
return window.framework.http.post("/biz_plan/add", row);
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
return window.framework.http.post("/biz_plan/edit", row);
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
return window.framework.http.post("/biz_plan/del", row);
|
||||
}
|
||||
|
||||
async toggle(row) {
|
||||
return window.framework.http.post("/biz_plan/toggle", row);
|
||||
}
|
||||
|
||||
async all() {
|
||||
return window.framework.http.get("/biz_plan/all", {});
|
||||
}
|
||||
|
||||
async exportRows(row) {
|
||||
return window.framework.http.post("/biz_plan/export", row);
|
||||
}
|
||||
}
|
||||
|
||||
export default new PlanServer();
|
||||
Reference in New Issue
Block a user