| | |
| | | package com.xiaopeng.api.feignClient.map; |
| | | |
| | | import com.xiaopeng.api.dto.map.OrderRouteAndFareDto; |
| | | import com.xiaopeng.api.dto.map.RouteAndFareDto; |
| | | import com.xiaopeng.api.factory.map.XpMapClientFallbackFactory; |
| | | import com.xiaopeng.api.factory.operation.XpSystemSettingClientFallbackFactory; |
| | |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | @FeignClient(contextId = "XpMapClient", value = ServiceNameConstantsEnum.XP_MAP_SERVICE, fallbackFactory = XpMapClientFallbackFactory.class) |
| | | public interface XpMapClient { |
| | | |
| | | /** |
| | | * 获取距离和时长 |
| | | * @param dto |
| | |
| | | @PostMapping("/base/v1/mini-program/map/getDistanceAndDuration") |
| | | R<RouteVo> getDistanceAndDuration(@RequestBody RouteAndFareDto dto); |
| | | |
| | | /** |
| | | * 获取距离和时长 |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | @PostMapping("/base/v1/mini-program/map/getOrderDistanceAndDuration") |
| | | R<RouteVo> getOrderDistanceAndDuration(@RequestBody OrderRouteAndFareDto dto); |
| | | |
| | | |
| | | /** |
| | | * 根据导航ID获取车端需要的导航数据 |
| | | * @param routedID |
| | | * @return |
| | | */ |
| | | @PostMapping("/base/v1/mini-program/map/queryRouted") |
| | | R<String> queryRouted(@RequestParam("routedID") String routedID); |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 判断是否同一经营区域 |