import request from '@/utils/request'

// 查询水泵接合器列表
export function listPump(query) {
  return request({
    url: '/commonuse/pump/list',
    method: 'get',
    params: query
  })
}

// 查询水泵接合器详细
export function getPump(id) {
  return request({
    url: '/commonuse/pump/' + id,
    method: 'get'
  })
}

// 新增水泵接合器
export function addPump(data) {
  return request({
    url: '/commonuse/pump',
    method: 'post',
    data: data
  })
}

// 修改水泵接合器
export function updatePump(data) {
  return request({
    url: '/commonuse/pump',
    method: 'put',
    data: data
  })
}

// 删除水泵接合器
export function delPump(id) {
  return request({
    url: '/commonuse/pump/' + id,
    method: 'delete'
  })
}
