package com.xiaopeng.api.feignClient.remoteDriving;
|
|
import com.xiaopeng.api.dto.remoteDriving.RemoteDrivingTriggerDTO;
|
import com.xiaopeng.api.factory.remoteDriving.RemoteDrivingClientFallbackFactory;
|
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;
|
|
@FeignClient(
|
contextId = "RemoteDrivingClient",
|
value = ServiceNameConstantsEnum.XP_REMOTE_DRIVING_SERVICE,
|
fallbackFactory = RemoteDrivingClientFallbackFactory.class
|
)
|
public interface RemoteDrivingClient {
|
|
/**
|
* 触发远驾工单
|
*/
|
@PostMapping("/logan/remote-driving/trigger")
|
R<?> trigger(@RequestBody RemoteDrivingTriggerDTO dto);
|
}
|