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)); + } }