Browse Source

# 根据经纬度获取七天天气接口提供

zhongwei
haungxing 2 years ago
parent
commit
c403ded82c
  1. 7
      hzims-service/weather/src/main/java/com/hnac/hzims/weather/controller/HeWeatherWeatherController.java

7
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<HeWeatherWeatherDailyResponse> get7DaysWeatherByLocation(@RequestParam @ApiParam(value = "经纬度",required = true) String location) {
return R.data(weatherService.getWeather7dWithCache(location));
}
}

Loading…
Cancel
Save