From bd4bac2ced24425630de55453f18f64e080f389a Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Fri, 9 Aug 2024 10:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/datacenter/controller/admin/weather/WeatherApi.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/admin/weather/WeatherApi.java b/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/admin/weather/WeatherApi.java index eba435660..56a70e176 100644 --- a/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/admin/weather/WeatherApi.java +++ b/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/admin/weather/WeatherApi.java @@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.datacenter.controller.admin.weather; import cn.iocoder.yudao.framework.common.pojo.CommonResult; import cn.iocoder.yudao.module.datacenter.controller.admin.weather.vo.WeatherInfoVO; import cn.iocoder.yudao.module.datacenter.utlis.GoodWeatherUtil; +import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; @@ -18,6 +19,7 @@ import org.springframework.web.bind.annotation.RestController; @Validated public class WeatherApi { @GetMapping(value = "/getWeather") + @Operation(summary = "获得输入城市的天气") public CommonResult getWeather(String cityCode) { String weatherData = GoodWeatherUtil.getWeatherData(cityCode); WeatherInfoVO weatherInfo = GoodWeatherUtil.GetWeather(weatherData);