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