| | |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | @FeignClient(contextId = "XpStationClient", value = ServiceNameConstantsEnum.XP_MAP_SERVICE, fallbackFactory = XpStationClientFallbackFactory.class) |
| | | public interface XpStationClient { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/logan/inner/v1/xpStation/getXpStationById") |
| | | @GetMapping("/logan/inner/v1/xpStation/getXpStationById/{id}") |
| | | R<XpStation> getXpStationById(@PathVariable("id") Long id); |
| | | |
| | | /** |
| | | * 根据围栏id获取场站 |
| | | * @param electronicId |
| | | * @return |
| | | */ |
| | | @PostMapping("/logan/inner/v1/xpStation/getXpStationByElectronicId") |
| | | R<List<XpStation>> getXpStationByElectronicId(@RequestParam("electronicId") Long electronicId); |
| | | } |