|
|
@@ -1,11 +1,8 @@
|
|
|
package bus.controller.biz;
|
|
|
|
|
|
-import bus.model.dto.WBusTrackInfoDto;
|
|
|
-import bus.model.dto.WCourseInfoByTypeDto;
|
|
|
-import bus.model.dto.WStationNameDto;
|
|
|
+import bus.model.dto.*;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageSerializable;
|
|
|
-import bus.model.dto.BCourseInfoDto;
|
|
|
import bus.model.dto.page.BCourseInfoPageDto;
|
|
|
import bus.model.vo.BCourseInfoVo;
|
|
|
import bus.service.BCourseInfoService;
|
|
|
@@ -124,17 +121,14 @@ public class BCourseInfoController implements BaseController {
|
|
|
|
|
|
/**
|
|
|
* 根据经纬度和半径(米)获取附近的路线
|
|
|
- * @param latitude
|
|
|
- * @param longitude
|
|
|
- * @param radius
|
|
|
+
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("根据经纬度和半径(米)获取附近的路线")
|
|
|
- @GetMapping(value = "getNearbyRoutes")
|
|
|
- List<WBusTrackInfoDto> getNearbyRoutes(@RequestParam BigDecimal latitude,
|
|
|
- @RequestParam BigDecimal longitude,
|
|
|
- @RequestParam Integer radius){
|
|
|
- return bCourseInfoService.getNearbyRoutes(latitude,longitude,radius);
|
|
|
+ @PostMapping(value = "getNearbyRoutes")
|
|
|
+ List<WBusTrackInfoDto> getNearbyRoutes(@RequestBody NearbyRoutesDto nearbyRoutesDto
|
|
|
+ ){
|
|
|
+ return bCourseInfoService.getNearbyRoutes(nearbyRoutesDto);
|
|
|
}
|
|
|
|
|
|
}
|