package com.fastbee.data.controller.weather;


import com.fastbee.common.core.domain.AjaxResult;
import com.fastbee.deviceData.api.xinzhitianqi.TianqiApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 天气预报接口
 */
@RestController
@RequestMapping("/weather")
public class WeatherController {

    /**
     * 获取七天的天气预报
     */
    @GetMapping("/qitian")
    public AjaxResult getWeather() {
        return AjaxResult.success(TianqiApi.QitianApi());
    }



}
