init
This commit is contained in:
27
admin/src/api/biz/biz_subscription_server.js
Normal file
27
admin/src/api/biz/biz_subscription_server.js
Normal file
@@ -0,0 +1,27 @@
|
||||
class BizSubscriptionServer {
|
||||
async page(row) {
|
||||
return window.framework.http.post("/biz_subscription/page", row);
|
||||
}
|
||||
|
||||
async byUser(userId) {
|
||||
return window.framework.http.get("/biz_subscription/by_user", { user_id: userId });
|
||||
}
|
||||
|
||||
async open(row) {
|
||||
return window.framework.http.post("/biz_subscription/open", row);
|
||||
}
|
||||
|
||||
async upgrade(row) {
|
||||
return window.framework.http.post("/biz_subscription/upgrade", row);
|
||||
}
|
||||
|
||||
async renew(row) {
|
||||
return window.framework.http.post("/biz_subscription/renew", row);
|
||||
}
|
||||
|
||||
async cancel(row) {
|
||||
return window.framework.http.post("/biz_subscription/cancel", row);
|
||||
}
|
||||
}
|
||||
|
||||
export default new BizSubscriptionServer();
|
||||
Reference in New Issue
Block a user