import axios from 'axios';
import { RequestBase } from './base';
export class AMapWeatherRequest extends RequestBase {
  async weather(params) {
    try {
      console.log(params);
      const {
        data
      } = await axios.get(`${this.serverHost}/weather/weatherInfo`, {
        params
      });
      const {
        status,
        ...others
      } = data;
      return {
        status: Number(status),
        ...others
      };
    } catch (err) {
      return {
        status: 0,
        info: err.toString()
      };
    }
  }
}
//# sourceMappingURL=weather.js.map