package com.xiaopeng.api.feignClient.operation;
|
|
import com.xiaopeng.api.factory.operation.XpRoutePlanClientFallbackFactory;
|
import com.xiaopeng.api.model.operation.XpRoutePlan;
|
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;
|
|
@FeignClient(contextId = "XpRoutePlanClient", value = ServiceNameConstantsEnum.XP_OPERATION_SERVICE, fallbackFactory = XpRoutePlanClientFallbackFactory.class)
|
public interface XpRoutePlanClient {
|
|
|
/**
|
* 根据openCityId获取路线规划配置
|
* @param openCityId
|
* @return
|
*/
|
@PostMapping("/inner/v1/routePlan/getXpRoutePlanOpenCityId")
|
R<XpRoutePlan> getXpRoutePlanOpenCityId(@RequestParam Long openCityId);
|
}
|