import request from '@/utils/request'

// 查询耳塞分配器检查记录列表
export function listEarplug(query) {
  return request({
    url: '/commonuse/earplug/list',
    method: 'get',
    params: query
  })
}

// 查询耳塞分配器检查记录详细
export function getEarplug(id) {
  return request({
    url: '/commonuse/earplug/' + id,
    method: 'get'
  })
}

// 新增耳塞分配器检查记录
export function addEarplug(data) {
  return request({
    url: '/commonuse/earplug',
    method: 'post',
    data: data
  })
}

// 修改耳塞分配器检查记录
export function updateEarplug(data) {
  return request({
    url: '/commonuse/earplug',
    method: 'put',
    data: data
  })
}

// 删除耳塞分配器检查记录
export function delEarplug(id) {
  return request({
    url: '/commonuse/earplug/' + id,
    method: 'delete'
  })
}
