puzhibing
2024-08-28 fe2e226da5a7505b343517e828f0d8c3a496fb7a
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
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);
}