text: import http from "../http-common";
  import axios from "axios";
  
  let accessToken = localStorage.getItem("user_token");
  class BannerDataService {
      getAll(page = 1) {
          return http.get(`/banner?page=${page}`);
      }
      get(id) {
          return http.get(`http://127.0.0.1:8000/api/banner/${id}`);
      }
      store(data) {
          return http.post(`/banner`, data);
      }
      update(id, data) {
          return http.post(`http://127.0.0.1:8000/api/banner/${id}`, data);
      }
      delete(id) {
          return http.delete(`/banner/${id}`);
      }
  }
  export default new BannerDataService();
  