import request from '@/utils/request'

export function deleteAction(url, parameter) {
  return request({
    url: url + parameter,
    method: 'delete'
  })
}
export function getDicAction(url, parameter) {
  return request({
    url: url + parameter,
    method: 'get',
    params: parameter
  })
}
export function getAction(url, parameter) {
  return request({
    url: url,
    method: 'get',
    params: parameter

  })
}
export function getDetaie(url, parameter) {
  return request({
    url: url + parameter,
    method: 'get'
  })
}
export function postAction(url, parameter) {
  return request({
    url: url,
    method: 'post',
    data: parameter
  })
}

export function httpAction(url, parameter, method) {
  return request({
    url: url,
    method: method,
    data: parameter,
    params: parameter
  })
}

export function downFile(url, parameter) {
  return request({
    url: url,
    params: parameter,
    method: 'get'
  })
}
