import request from '@/config/axios'

// 查询种植信息分页
export const getSeedlingPage = (params) => {
  return request.get({ url: '/erp/seedling/page', params })
}

// 查询种植信息详情
export const getSeedling = (id) => {
  return request.get({ url: `/erp/seedling/get/${id}` })
}

// 新增种植信息
export const createSeedling = (data) => {
  return request.post({ url: '/erp/seedling/create', data })
}

// 修改种植信息
export const updateSeedling = (data) => {
  return request.put({ url: '/erp/seedling/update', data })
}

// 删除种植信息
export const deleteSeedling = (id) => {
  return request.delete({ url: `/erp/seedling/delete/${id}` })
}

// 导出种植信息
export const exportSeedling = (params) => {
  return request.download({ url: '/erp/seedling/export-excel', params })
} 