无关风月
2025-02-17 dfd423f90894d24081e7d7da08d09498898ee9c2
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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.TCECClientFallbackFactory;
import com.ruoyi.integration.api.vo.StartChargeResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @Date 2025/1/24 10:32
 */
@FeignClient(contextId = "TCECClient", value = ServiceNameConstants.INTEGRATION_SERVICE, fallbackFactory = TCECClientFallbackFactory.class)
public interface TCECClient {
    
    
    /**
     * 接口状态变化后推送给第三方
     * @return
     */
    @PostMapping("/evcs/v1.0/pushChargingGunStatus")
    R pushChargingGunStatus(@RequestParam("fullNumber") String fullNumber, @RequestParam("status") Integer status);
    
    
    
    /**
     * 启动充电结果推送
     * @param result
     * @return
     */
    @PostMapping("/evcs/v1.0/notificationStartChargeResult")
    R notificationStartChargeResult(@RequestBody StartChargeResult result);
    
    
    
    
    /**
     * 推送充电状态
     * @param startChargeSeq
     * @return
     */
    @PostMapping("/evcs/v1.0/notificationEquipChargeStatus")
    R notificationEquipChargeStatus(@RequestParam("startChargeSeq") String startChargeSeq, @RequestParam("operatorId") Integer operatorId);
    
    
    
    /**
     * 推送停止充电结果
     * @param startChargeSeq    充电订单号
     * @param connectorID       充电设备接口编码
     * @return
     */
    @PostMapping("/evcs/v1.0/notificationStopChargeResult")
    R notificationStopChargeResult(@RequestParam("startChargeSeq") String startChargeSeq, @RequestParam("connectorID") String connectorID,
                                          @RequestParam("operatorId") Integer operatorId);
    
    
    
    /**
     * 推送订单信息
     * @param startChargeSeq
     * @return
     */
    @PostMapping("/evcs/v1.0/notificationChargeOrderInfo")
    R notificationChargeOrderInfo(@RequestParam("startChargeSeq") String startChargeSeq, @RequestParam("operatorId") Integer operatorId);
    
    
    
    
    /**
     * 站点变更推送通知
     * @param siteIds
     * @return
     */
    @PostMapping("/evcs/v1.0/notificationStationChange")
    R notificationStationChange(@RequestParam("siteIds") List<Integer> siteIds);
}