liujie
2026-02-27 51c5d7b8ead89440d8d94acdfdd4c2232b4c7930
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
32
33
34
35
36
37
38
39
40
41
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.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
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);
    /**
     * 通过运营人员id查询车队信息
     *
     * @param operationsUserId 运营人员id
     * @return 车队信息
     */
    @GetMapping("/inner/v1/fleet/getFleetByOperationsUserId")
    R<XpFleet> getFleetByOperationsUserId(@RequestParam Long operationsUserId);
}