From c403ded82cc033459225f428bae5e4b59600d032 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Tue, 16 May 2023 13:58:38 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E6=A0=B9=E6=8D=AE=E7=BB=8F=E7=BA=AC?= =?UTF-8?q?=E5=BA=A6=E8=8E=B7=E5=8F=96=E4=B8=83=E5=A4=A9=E5=A4=A9=E6=B0=94?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BE=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hnac/hzims/weather/controller/HeWeatherWeatherController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hzims-service/weather/src/main/java/com/hnac/hzims/weather/controller/HeWeatherWeatherController.java b/hzims-service/weather/src/main/java/com/hnac/hzims/weather/controller/HeWeatherWeatherController.java index 02a9cf3..893cd67 100644 --- a/hzims-service/weather/src/main/java/com/hnac/hzims/weather/controller/HeWeatherWeatherController.java +++ b/hzims-service/weather/src/main/java/com/hnac/hzims/weather/controller/HeWeatherWeatherController.java @@ -52,4 +52,11 @@ public class HeWeatherWeatherController extends BladeController { }); return R.data(result); } + + @GetMapping("/get7DaysWeatherByLocation") + @ApiOperationSupport(order = 2) + @ApiOperation("根据经纬度查询") + public R get7DaysWeatherByLocation(@RequestParam @ApiParam(value = "经纬度",required = true) String location) { + return R.data(weatherService.getWeather7dWithCache(location)); + } }