1.添加获取热门城市接口
This commit is contained in:
parent
e16271e519
commit
71a44f4588
|
@ -62,31 +62,6 @@ public class LocationController {
|
||||||
return Result.Success(SUCCESS, locationRes);
|
return Result.Success(SUCCESS, locationRes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ApiOperation("获取热门城市")
|
|
||||||
// @PostMapping("/getHotCities")
|
|
||||||
// public Result<List<Location>> getHotCities() {
|
|
||||||
// List<String> 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<String, String> cityMap = HotCityTag.cityMap;
|
|
||||||
// Collection hotCity = cityMap.values();
|
|
||||||
// List<Integer> list = new ArrayList<>(hotCity);
|
|
||||||
// return Result.Success(SUCCESS, locationRepository.findHotCitiesByCityName(city));
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//// return Result.Success(SUCCESS, locationRepository.findHotCitiesByCityName(cityMap.values()));
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
@ApiOperation("获取热门城市")
|
@ApiOperation("获取热门城市")
|
||||||
@PostMapping("/getHotCities")
|
@PostMapping("/getHotCities")
|
||||||
public Result<List<LocationRes>> getHotCities() {
|
public Result<List<LocationRes>> getHotCities() {
|
||||||
|
@ -104,8 +79,5 @@ public class LocationController {
|
||||||
}
|
}
|
||||||
return Result.Success(SUCCESS, locationRes);
|
return Result.Success(SUCCESS, locationRes);
|
||||||
|
|
||||||
|
|
||||||
// return Result.Success(SUCCESS, locationRepository.findHotCitiesByCityName(cityMap.values()));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue