import request from '@/config/axios'

/**
 * 创建工位绑定
 */
export function YVHcreateWorkstationBinding(data: any) {
  return request.post({ url: '/mes/workstation-binding/create', data })
}

/**
 * 更新工位绑定
 */
export function YVHupdateWorkstationBinding(data: any) {
  return request.put({ url: '/mes/workstation-binding/update', data })
}

/**
 * 删除工位绑定
 */
export function YVHdeleteWorkstationBinding(id: number) {
  return request.delete({ url: '/mes/workstation-binding/delete', params: { id } })
}

/**
 * 获取工位绑定详情
 */
export function YVHgetWorkstationBinding(id: number) {
  return request.get({ url: '/mes/workstation-binding/get', params: { id } })
}

/**
 * 获取工位绑定分页
 */
export function YVHgetWorkstationBindingPage(params: any) {
  return request.get({ url: '/mes/workstation-binding/page', params })
}

/**
 * 获取工位绑定列表
 */
export function YVHgetWorkstationBindingList() {
  return request.get({ url: '/mes/workstation-binding/list' })
}
