liujie
2026-04-12 fa8e441c82c9d336d1144dd1ec925551d07b2299
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.xiaopeng.api.feignClient.operation;
 
import com.xiaopeng.api.factory.operation.XpTestPlanClientFallbackFactory;
import com.xiaopeng.api.model.map.XpTestPoint;
import com.xiaopeng.api.model.operation.XpTestPlan;
import com.xiaopeng.api.model.operation.XpTestPlanPoint;
import com.xiaopeng.api.model.operation.XpTestPlanVehicle;
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.RequestParam;
 
import java.util.List;
 
@FeignClient(contextId = "XpTestPlanClient", value = ServiceNameConstantsEnum.XP_OPERATION_SERVICE, fallbackFactory = XpTestPlanClientFallbackFactory.class)
public interface XpTestPlanClient {
 
 
    /**
     * 根据id获取测试计划
     * @param id
     * @return
     */
    @PostMapping("/logan/inner/v1/xp-test-plan/getXpTestPlanById")
    R<XpTestPlan> getXpTestPlanById(@RequestParam Long id);
 
 
 
    /**
     * 根据id获取测试计划点
     * @param id
     * @return
     */
    @PostMapping("/logan/inner/v1/xp-test-plan/getXpTestPlanPointById")
    R<XpTestPlanPoint> getXpTestPlanPointById(@RequestParam Long id);
 
 
    /**
     * 根据id获取测试计划点位
     * @param id
     * @return
     */
    @PostMapping("/logan/inner/v1/xp-test-plan/getXpTestPointById")
    R<XpTestPoint> getXpTestPointById(@RequestParam Long id);
 
 
 
 
 
    /**
     * 根据测试计划获取车辆信息
     * @param testPlanId
     * @return
     */
    @PostMapping("/logan/inner/v1/xp-test-plan/getXpTestPlanVehicleByTestPlanId")
    R<List<XpTestPlanVehicle>> getXpTestPlanVehicleByTestPlanId(@RequestParam Long testPlanId);
}