天气预报

master
chaiyapeng 2024-09-04 19:32:36 +08:00
parent 2868402653
commit 503495b5e1
4 changed files with 87 additions and 3525 deletions

View File

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

View File

@ -30,5 +30,5 @@ public interface MarketService extends IService<Market> {
Result getPostcode(String code);
Result getWeatherForecast(String city);
Result getWeatherForecast(String cityName);
}

View File

@ -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