liujie
2026-02-12 b39d6b4ad22a37a2a4a4d589748b29bf4a9da812
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.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);
}