package com.ruoyi.integration.api.feignClient;
|
|
import com.ruoyi.common.core.constant.ServiceNameConstants;
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.integration.api.factory.ChargingHandshakeFallbackFactory;
|
import com.ruoyi.integration.api.model.ChargingHandshake;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2024/8/28 10:46
|
*/
|
@FeignClient(contextId = "ChargingHandshakeClient", value = ServiceNameConstants.INTEGRATION_SERVICE, fallbackFactory = ChargingHandshakeFallbackFactory.class)
|
public interface ChargingHandshakeClient {
|
|
|
/**
|
* 根据订单号查询充电握手数据
|
* @param code
|
* @return
|
*/
|
@PostMapping("/chargingHandshake/getDataByOrderCode")
|
R<ChargingHandshake> getDataByOrderCode(@RequestParam("code") String code);
|
}
|