xuhy
2026-04-15 406ae5451ecde0b4b40a9ecfee07f2171fda80bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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<String> 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);
}