liujie
2026-02-12 0a68de6a5606869d6422a34742d8bc3cb7bdab21
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
package com.xiaopeng.api.feignClient.vehicleConvoy;
 
import com.xiaopeng.api.factory.vehicleConvoy.XpFleetOperationsClientFallbackFactory;
import com.xiaopeng.api.factory.vehicleConvoy.XpFleetVehicleClientFallbackFactory;
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.PathVariable;
 
import java.util.List;
 
/**
 * 车队人员Feign客户端
 *
 * @author mitao
 */
@FeignClient(contextId = "XpFleetVehicleClient",
        value = ServiceNameConstantsEnum.XP_VEHICLE_CONVOY_SERVICE,
        fallbackFactory = XpFleetOperationsClientFallbackFactory.class)
public interface XpFleetOperationsClient {
 
    /**
     * 根据人员id 获取所属车队下关联的车辆ids
     *
     * @param id 运维人员id
     * @return 车辆isd
     */
    @GetMapping("/inner/fleet-operations/getVehicleByUserId/{id}")
    R<List<Long>> getVehicleByUserId(@PathVariable("id") Long id);
}