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);
|
|
/**
|
* 根据运维人员ID查询关联的车队ID列表
|
*
|
* @param userId 运维人员ID
|
* @return 车队ID列表
|
*/
|
@GetMapping("/inner/fleet-operations/getFleetIdsByUserId/{userId}")
|
R<List<Long>> getFleetIdsByUserId(@PathVariable("userId") Long userId);
|
|
|
/**
|
* 根据车队ID查询关联的运维人员ID列表
|
*
|
* @param fleetId 车队ID
|
* @return 运维人员ID列表
|
*/
|
@GetMapping("/inner/fleet-operations/getOperationsIdsByFleetId/{fleetId}")
|
R<List<Long>> getOperationsIdsByFleetId(@PathVariable("fleetId") Long fleetId);
|
}
|