import { singleFetch } from './../utils/request';

/**
 * 获取在线天气
 * @param {string} cityKey
 */
export const getOnlineWeather = (cityKey) => {
  const url = `http://wthrcdn.etouch.cn/weather_mini?city=${cityKey}`;
  return singleFetch(url);
};
