天气预报

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") @GetMapping("getWeatherForecast")
public Result getWeatherForecast(@RequestParam(name = "city") String city){ public Result getWeatherForecast(@RequestParam(name = "cityName") String cityName){
return marketService.getWeatherForecast(city); return marketService.getWeatherForecast(cityName);
} }
} }

View File

@ -30,5 +30,5 @@ public interface MarketService extends IService<Market> {
Result getPostcode(String code); 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 @Override
public Result getWeatherForecast(String city) { public Result getWeatherForecast(String cityName) {
WeatherForecast weatherForecast = WeatherForecastInquire.queryWeather(city); WeatherForecast weatherForecast = WeatherForecastInquire.queryWeather(cityName);
return Result.success(weatherForecast); return Result.success(weatherForecast);
} }
} }

File diff suppressed because it is too large Load Diff