diff --git a/src/main/java/com/chint/application/out/LocationController.java b/src/main/java/com/chint/application/out/LocationController.java index 57937020..cd960083 100644 --- a/src/main/java/com/chint/application/out/LocationController.java +++ b/src/main/java/com/chint/application/out/LocationController.java @@ -62,31 +62,6 @@ public class LocationController { return Result.Success(SUCCESS, locationRes); } -// @ApiOperation("获取热门城市") -// @PostMapping("/getHotCities") -// public Result> getHotCities() { -// List city = new ArrayList<>(); -// city.add("上海"); -// city.add("北京"); -// city.add("广州"); -// city.add("深圳"); -// city.add("天津"); -// city.add("重庆"); -// city.add("苏州"); -// city.add("武汉"); -// city.add("成都"); -// city.add("杭州"); -// city.add("温州"); -// HashMap cityMap = HotCityTag.cityMap; -// Collection hotCity = cityMap.values(); -// List list = new ArrayList<>(hotCity); -// return Result.Success(SUCCESS, locationRepository.findHotCitiesByCityName(city)); -// -// -//// return Result.Success(SUCCESS, locationRepository.findHotCitiesByCityName(cityMap.values())); -// -// } - @ApiOperation("获取热门城市") @PostMapping("/getHotCities") public Result> getHotCities() { @@ -104,8 +79,5 @@ public class LocationController { } return Result.Success(SUCCESS, locationRes); - -// return Result.Success(SUCCESS, locationRepository.findHotCitiesByCityName(cityMap.values())); - } } \ No newline at end of file