| | |
| | | return ResultMessage.ok(response); |
| | | } |
| | | |
| | | /** |
| | | * @Description: 查询最新的6参和aqi数据 |
| | | * @Param: [regionCode] |
| | | * @return: com.moral.constant.ResultMessage |
| | | * @Author: 陈凯裕 |
| | | * @Date: 2021/11/1 |
| | | */ |
| | | @GetMapping("queryByRegionCode") |
| | | public ResultMessage queryByRegionCode(Integer regionCode){ |
| | | Map<String, Object> value = cityAqiService.queryCityAqiByRegionCode(regionCode); |
| | | return ResultMessage.ok(value); |
| | | } |
| | | |
| | | /** |
| | | * @Description: 查询最近24小时的aqi数据 |
| | | * @Param: [regionCode] |
| | | * @return: com.moral.constant.ResultMessage |
| | | * @Author: 陈凯裕 |
| | | * @Date: 2021/11/1 |
| | | */ |
| | | @GetMapping("query24HoursAQI") |
| | | public ResultMessage query24HoursAQIByRegionCode(Integer regionCode){ |
| | | Map<String, Object> stringObjectMap = cityAqiService.query24HoursAqiByRegionCode(regionCode); |
| | | return ResultMessage.ok(stringObjectMap); |
| | | } |
| | | } |