package com.xiaopeng.api.feignClient.map; import com.xiaopeng.api.factory.map.AdcFencePushClientFallbackFactory; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; /** * ADC 围栏推送 Feign 客户端(供 vehicle-convoy / automatic-pilot 等服务调用 map 服务的推送接口) */ @FeignClient(contextId = "AdcFencePushClient", value = ServiceNameConstantsEnum.XP_MAP_SERVICE, fallbackFactory = AdcFencePushClientFallbackFactory.class) public interface AdcFencePushClient { @PostMapping("/logan/inner/adc/pushFenceToVehicle") R pushFenceToVehicle(@RequestParam("vehicleVin") String vehicleVin, @RequestParam("electronicId") Long electronicId); @PostMapping("/logan/inner/adc/pushFenceToVehicles") R pushFenceToVehicles(@RequestParam("electronicId") Long electronicId); @GetMapping("/logan/inner/adc/getMapVersion") R getMapVersion(@RequestParam("vin") String vin); @PostMapping("/logan/inner/adc/manualPush") R manualPush(@RequestParam("electronicId") Long electronicId); @PostMapping("/logan/inner/adc/manualPushToVehicle") R manualPushToVehicle(@RequestParam("vehicleVin") String vehicleVin, @RequestParam("electronicId") Long electronicId); }