|
@@ -74,10 +74,10 @@ public class RiderController extends BaseController {
|
|
|
riderService.dispatch(orderId);
|
|
riderService.dispatch(orderId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ @GetMapping("/info")
|
|
|
@ApiOperation("骑手信息")
|
|
@ApiOperation("骑手信息")
|
|
|
- public void riderInfo(Long riderId) {
|
|
|
|
|
- Rider rider = riderRepo.findById(riderId).orElseThrow(new BusinessException("无骑手"));
|
|
|
|
|
|
|
+ public Rider riderInfo(Long riderId) {
|
|
|
|
|
+ return riderRepo.findById(riderId).orElseThrow(new BusinessException("无骑手"));
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|