import request from '@/config/axios'

/**
 * @author:huangtianci
 * 创建工序
 */
export function YVHcreateProcessOperation(data: any) {
  return request.post({ url: '/mes/process-operation/create', data })
}

/**
 * @author:huangtianci
 * 更新工序
 */
export function YVHupdateProcessOperation(data: any) {
  return request.put({ url: '/mes/process-operation/update', data })
}

/**
 * @author:huangtianci
 * 删除工序
 */
export function YVHdeleteProcessOperation(id: number) {
  return request.delete({ url: '/mes/process-operation/delete', params: { id } })
}

/**
 * @author:huangtianci
 * 获取工序详情
 */
export function YVHgetProcessOperation(id: number) {
  return request.get({ url: '/mes/process-operation/get', params: { id } })
}

/**
 * @author:huangtianci
 * 获取工序分页
 */
export function YVHgetProcessOperationPage(params: any) {
  return request.get({ url: '/mes/process-operation/page', params })
}

/**
 * @author:huangtianci
 * 获取工序列表
 */
export function YVHgetProcessOperationList() {
  return request.get({ url: '/mes/process-operation/list' })
}
