import request from '@/utils/request'

export function getVehicleTasks(vehicleId) {
  return request({
    url: `/api/vehicle-manager/tasks/${encodeURIComponent(vehicleId)}`,
    method: 'get'
  })
}

export function getVehiclePath(vehicleId) {
  return request({
    url: `/api/vehicle-manager/vehicles/${encodeURIComponent(vehicleId)}/path`,
    method: 'get'
  })
}

export function getVehicleBattery(vehicleId) {
  return request({
    url: `/api/vehicle-manager/vehicles/${encodeURIComponent(vehicleId)}/battery`,
    method: 'get'
  })
}
