import request from '@/utils/request'

// 查询刀模版具资源列表
export function listWorkstationtool(query) {
  return request({
    url: '/mes/md/workstationtool/list',
    method: 'get',
    params: query
  })
}

// 查询刀模版具资源详细
export function getWorkstationtool(recordId) {
  return request({
    url: '/mes/md/workstationtool/' + recordId,
    method: 'get'
  })
}

// 新增刀模版具资源
export function addWorkstationtool(data) {
  return request({
    url: '/mes/md/workstationtool',
    method: 'post',
    data: data
  })
}

// 修改刀模版具资源
export function updateWorkstationtool(data) {
  return request({
    url: '/mes/md/workstationtool',
    method: 'put',
    data: data
  })
}

// 删除刀模版具资源
export function delWorkstationtool(recordId) {
  return request({
    url: '/mes/md/workstationtool/' + recordId,
    method: 'delete'
  })
}
