package com.xiaopeng.api.feignClient.operation;
|
|
import com.xiaopeng.api.factory.operation.XpTestPlanClientFallbackFactory;
|
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("/inner/v1/xp-test-plan/getXpTestPlanById")
|
R<XpTestPlan> getXpTestPlanById(@RequestParam Long id);
|
|
|
|
/**
|
* 根据id获取测试计划点
|
* @param id
|
* @return
|
*/
|
@PostMapping("/inner/v1/xp-test-plan/getXpTestPlanPointById")
|
R<XpTestPlanPoint> getXpTestPlanPointById(@RequestParam Long id);
|
|
|
/**
|
* 根据id获取测试计划点位
|
* @param id
|
* @return
|
*/
|
@PostMapping("/inner/v1/xp-test-plan/getXpTestPointById")
|
R<XpTestPoint> getXpTestPointById(@RequestParam Long id);
|
|
|
|
|
/**
|
* 根据测试计划获取车辆信息
|
* @param testPlanId
|
* @return
|
*/
|
@PostMapping("/inner/v1/xp-test-plan/getXpTestPlanVehicleByTestPlanId")
|
R<List<XpTestPlanVehicle>> getXpTestPlanVehicleByTestPlanId(@RequestParam Long testPlanId);
|
}
|