use crate::core::{DeviceResponse, IntoBody, Result};
platform_service! {
/// GeoIP (device-based): `POST /database/ip`.
DatabaseIpService
}
impl DatabaseIpService {
/// Consulta a base de IPs: `POST /database/ip` body `{"ip": "..."}`.
pub async fn ip(&self, body: impl IntoBody) -> Result<DeviceResponse> {
Ok(DeviceResponse(self.base.post("database/ip", body).await?))
}
}