天气预报
parent
2868402653
commit
503495b5e1
|
@ -89,7 +89,7 @@ public class MarketController extends BaseController {
|
|||
* 天气预报
|
||||
*/
|
||||
@GetMapping("getWeatherForecast")
|
||||
public Result getWeatherForecast(@RequestParam(name = "city") String city){
|
||||
return marketService.getWeatherForecast(city);
|
||||
public Result getWeatherForecast(@RequestParam(name = "cityName") String cityName){
|
||||
return marketService.getWeatherForecast(cityName);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ public interface MarketService extends IService<Market> {
|
|||
|
||||
Result getPostcode(String code);
|
||||
|
||||
Result getWeatherForecast(String city);
|
||||
Result getWeatherForecast(String cityName);
|
||||
}
|
||||
|
|
|
@ -98,8 +98,8 @@ public class MarketServiceImpl extends ServiceImpl<MarketMapper, Market> impleme
|
|||
}
|
||||
|
||||
@Override
|
||||
public Result getWeatherForecast(String city) {
|
||||
WeatherForecast weatherForecast = WeatherForecastInquire.queryWeather(city);
|
||||
public Result getWeatherForecast(String cityName) {
|
||||
WeatherForecast weatherForecast = WeatherForecastInquire.queryWeather(cityName);
|
||||
return Result.success(weatherForecast);
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue