import request from '@/utils/request'

export function getpEquipmentList(query) {
  return request({
    url: '/em/equipment/',
    method: 'get',
    params: query
  })
}
export function getEquipmentAll() {
  return request({
    url: '/em/equipment/',
    method: 'get'
  })
}
export function createEquipment(data) {
  return request({
    url: '/em/equipment/',
    method: 'post',
    data
  })
}
export function updateEquipment(id, data) {
  return request({
    url: `/em/equipment/${id}/`,
    method: 'put',
    data
  })
}
export function deleteEquipment(id, data) {
  return request({
    url: `/em/equipment/${id}/`,
    method: 'delete',
    data
  })
}
