import Vue from 'vue'
const sharePool = (Vue.__share_pool__ = Vue.__share_pool__ || {})
const http = (sharePool.http = sharePool.http || {})
function get(url, params) {
  return http.get(url, params)
}
function post(url, params) {
  return http.post(url, params)
}
function put(url, params) {
  return http.put(url, params)
}
function patch(url, params) {
  return http.patch(url, params)
}
function del(url, params) {
  return http.del(url, params)
}
function downloadFile(url, type) {
  return http.downloadFile(url, type)
}
function downloadFileWithParams(url, type, params) {
  return http.downloadFile(url, type, params)
}
function downloadZip(url, type) {
  return http.downloadZip(url, type)
}
export { get, post, put, del, patch, downloadFile, downloadZip, downloadFileWithParams }