package com.xiaopeng.api.feignClient.vehicleConvoy;
|
|
import com.xiaopeng.api.factory.vehicleConvoy.XpFleetClientFallbackFactory;
|
import com.xiaopeng.api.model.vehicleConvoy.XpFleet;
|
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.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import java.util.List;
|
|
/**
|
* 车队Feign客户端
|
*
|
* @author mitao
|
*/
|
@FeignClient(contextId = "XpFleetClient",
|
value = ServiceNameConstantsEnum.XP_VEHICLE_CONVOY_SERVICE,
|
fallbackFactory = XpFleetClientFallbackFactory.class)
|
public interface XpFleetClient {
|
|
/**
|
* 根据ID列表批量查询车队信息
|
*
|
* @param ids 车队ID列表
|
* @return 车队列表
|
*/
|
@PostMapping("/inner/fleet/listByIds")
|
R<List<XpFleet>> listByIds(@RequestBody List<Long> ids);
|
}
|