class SubscriptionsServer {
  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);
  }

  async exportRows(row) {
    return window.framework.http.post("/biz_subscription/export", row);
  }
}

export default new SubscriptionsServer();
