Your Name
2023-08-26 7958f1dddb8a7f4e70d232b07a7703955ecedae0
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
package com.java110.common.charge;
 
import com.java110.dto.charge.ChargeMachineDto;
import com.java110.dto.charge.NotifyChargeOrderDto;
import com.java110.dto.charge.ChargeMachinePortDto;
import com.java110.vo.ResultVo;
 
import java.util.List;
 
/**
 * 充电适配器
 */
public interface IChargeCore {
 
    public static final String CHARGE_TYPE_HOURS = "hours";
    public static final String CHARGE_TYPE_ENERGY = "energy";
 
    /**
     * 开始充电接口
     * @param chargeMachineDto
     * @param chargeType
     * @param duration
     * @return
     */
    ResultVo startCharge(ChargeMachineDto chargeMachineDto, ChargeMachinePortDto chargeMachinePortDto, String chargeType, double duration,String orderId);
 
 
    /**
     * 结束充电接口
     * @param chargeMachineDto
     * @return
     */
    ResultVo stopCharge(ChargeMachineDto chargeMachineDto, ChargeMachinePortDto chargeMachinePortDto);
 
    /**
     * 查询充电端口状态
     * @param chargeMachineDto
     * @param chargeMachinePortDto
     * @return
     */
    ChargeMachinePortDto getChargePortState(ChargeMachineDto chargeMachineDto, ChargeMachinePortDto chargeMachinePortDto);
 
    ResultVo finishCharge(NotifyChargeOrderDto notifyChargeOrderDto);
 
    ResultVo workHeartbeat(NotifyChargeOrderDto notifyChargeOrderDto);
 
 
    /**
     * 查询设备状态
     * @param chargeMachineDtos
     */
    void queryChargeMachineState(List<ChargeMachineDto> chargeMachineDtos);
 
     boolean ifStartMonthCard(String personTel, String communityId);
}