import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/automaticPlanning',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/automaticPlanning/',
    method: 'delete',
    data: ids
  })
}

export function batchOrder(data) {
  return request({
    url: 'api/automaticPlanning/batchOrder',
    method: 'post',
    data
  })
}
export function batchOrderZone(data) {
  return request({
    url: 'api/automaticPlanning/batchOrderZone',
    method: 'post',
    data
  })
}

export function batchHy(data) {
  return request({
    url: 'api/automaticPlanning/batchHy',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'api/automaticPlanning',
    method: 'put',
    data
  })
}

export default { add, edit, del,batchOrder,batchHy,batchOrderZone }
