1
This commit is contained in:
11
admin/src/api/subscription/audit_server.js
Normal file
11
admin/src/api/subscription/audit_server.js
Normal file
@@ -0,0 +1,11 @@
|
||||
class AuditServer {
|
||||
async page(row) {
|
||||
return window.framework.http.post("/biz_audit_log/page", row);
|
||||
}
|
||||
|
||||
async exportRows(row) {
|
||||
return window.framework.http.post("/biz_audit_log/export", row);
|
||||
}
|
||||
}
|
||||
|
||||
export default new AuditServer();
|
||||
7
admin/src/api/subscription/dashboard_server.js
Normal file
7
admin/src/api/subscription/dashboard_server.js
Normal file
@@ -0,0 +1,7 @@
|
||||
class DashboardServer {
|
||||
async summary() {
|
||||
return window.framework.http.get("/biz_dashboard/summary", {});
|
||||
}
|
||||
}
|
||||
|
||||
export default new DashboardServer();
|
||||
@@ -1,4 +1,4 @@
|
||||
class BizPaymentServer {
|
||||
class PaymentServer {
|
||||
async confirmOffline(row) {
|
||||
return window.framework.http.post("/biz_payment/confirm-offline", row);
|
||||
}
|
||||
@@ -8,4 +8,4 @@ class BizPaymentServer {
|
||||
}
|
||||
}
|
||||
|
||||
export default new BizPaymentServer();
|
||||
export default new PaymentServer();
|
||||
@@ -1,4 +1,4 @@
|
||||
class BizPlanServer {
|
||||
class PlanServer {
|
||||
async page(row) {
|
||||
return window.framework.http.post("/biz_plan/page", row);
|
||||
}
|
||||
@@ -22,6 +22,10 @@ class BizPlanServer {
|
||||
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 BizPlanServer();
|
||||
export default new PlanServer();
|
||||
@@ -1,4 +1,4 @@
|
||||
class BizSubscriptionServer {
|
||||
class SubscriptionsServer {
|
||||
async page(row) {
|
||||
return window.framework.http.post("/biz_subscription/page", row);
|
||||
}
|
||||
@@ -22,6 +22,10 @@ class BizSubscriptionServer {
|
||||
async cancel(row) {
|
||||
return window.framework.http.post("/biz_subscription/cancel", row);
|
||||
}
|
||||
|
||||
async exportRows(row) {
|
||||
return window.framework.http.post("/biz_subscription/export", row);
|
||||
}
|
||||
}
|
||||
|
||||
export default new BizSubscriptionServer();
|
||||
export default new SubscriptionsServer();
|
||||
@@ -1,4 +1,4 @@
|
||||
class BizTokenServer {
|
||||
class TokenServer {
|
||||
async page(row) {
|
||||
return window.framework.http.post("/biz_token/page", row);
|
||||
}
|
||||
@@ -10,6 +10,10 @@ class BizTokenServer {
|
||||
async revoke(row) {
|
||||
return window.framework.http.post("/biz_token/revoke", row);
|
||||
}
|
||||
|
||||
async exportRows(row) {
|
||||
return window.framework.http.post("/biz_token/export", row);
|
||||
}
|
||||
}
|
||||
|
||||
export default new BizTokenServer();
|
||||
export default new TokenServer();
|
||||
23
admin/src/api/subscription/usage_server.js
Normal file
23
admin/src/api/subscription/usage_server.js
Normal file
@@ -0,0 +1,23 @@
|
||||
class UsageServer {
|
||||
async page(row) {
|
||||
return window.framework.http.post("/biz_usage/page", row);
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
return window.framework.http.post("/biz_usage/add", row);
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
return window.framework.http.post("/biz_usage/edit", row);
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
return window.framework.http.post("/biz_usage/del", row);
|
||||
}
|
||||
|
||||
async exportRows(row) {
|
||||
return window.framework.http.post("/biz_usage/export", row);
|
||||
}
|
||||
}
|
||||
|
||||
export default new UsageServer();
|
||||
@@ -1,4 +1,4 @@
|
||||
class BizUserServer {
|
||||
class UserServer {
|
||||
async page(row) {
|
||||
return window.framework.http.post("/biz_user/page", row);
|
||||
}
|
||||
@@ -22,6 +22,14 @@ class BizUserServer {
|
||||
async disable(row) {
|
||||
return window.framework.http.post("/biz_user/disable", row);
|
||||
}
|
||||
|
||||
async exportRows(row) {
|
||||
return window.framework.http.post("/biz_user/export", row);
|
||||
}
|
||||
|
||||
async revokeAllTokens(row) {
|
||||
return window.framework.http.post("/biz_user/revoke_all_tokens", row);
|
||||
}
|
||||
}
|
||||
|
||||
export default new BizUserServer();
|
||||
export default new UserServer();
|
||||
Reference in New Issue
Block a user