package com.xiaopeng.api.feignClient.vehicleConvoy;
|
|
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;
|
|
/**
|
* 车队车辆Feign客户端
|
*
|
* @author mitao
|
*/
|
@FeignClient(contextId = "XpFleetVehicleClient",
|
value = ServiceNameConstantsEnum.XP_VEHICLE_CONVOY_SERVICE,
|
fallbackFactory = XpFleetVehicleClientFallbackFactory.class)
|
public interface XpFleetVehicleClient {
|
|
/**
|
* 根据车辆ID查询车队ID
|
*
|
* @param vehicleId 车辆ID
|
* @return 车队ID
|
*/
|
@GetMapping("/inner/fleet-vehicle/getFleetIdByVehicleId/{vehicleId}")
|
R<Long> getFleetIdByVehicleId(@PathVariable("vehicleId") Long vehicleId);
|
}
|