新增 华为 请求启动充电接口

This commit is contained in:
Lemon
2024-01-24 17:30:27 +08:00
parent 0ba0fa3c43
commit ca57feebb2
4 changed files with 202 additions and 2 deletions

View File

@@ -0,0 +1,64 @@
package com.jsowell.pile.dto.huawei;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
/**
* 华为请求启动充电DTO
*
* @author Lemon
* @Date 2024/1/23 14:34:58
*/
@Data
public class QueryStartChargeDTO {
/**
* 充电订单号 Y
* 格式“运营商ID+唯一编号”(<=27字符)。
*/
@JsonProperty(value = "StartChargeSeq")
private String startChargeSeq;
/**
* 充电设备接口编码 Y
*/
@JsonProperty(value = "ConnectorID")
private String connectorID;
/**
* 二维码其他信息
*/
@JsonProperty(value = "QRCode")
private String qrCode;
/**
* 启动方式
*
* 0扫码启动
* 1即插即充
*/
@JsonProperty(value = "Startmode")
private Integer startMode;
/**
* 预充电量限制
* 单次可充电最大电量达到充电电量后自动停止充电单位小数点后2位不填则不限制。
*/
@JsonProperty(value = "PowerLimit")
private BigDecimal powerLimit;
/**
* 预充电费限制
* 单次可充电最大电费达到充电费用后自动停止充电单位小数点后2位不填则不限制
*/
@JsonProperty(value = "MoneyLimit")
private BigDecimal moneyLimit;
/**
* 预充SOC限制
* 单次可充电最大SOC达到限制SOC后自动停止充电小数点后1位不填则不限制。
*/
@JsonProperty(value = "SOCLimit")
private BigDecimal socLimit;
}

View File

@@ -0,0 +1,29 @@
package com.jsowell.pile.dto.huawei;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
/**
* TODO
*
* @author Lemon
* @Date 2024/1/23 15:32:25
*/
@Data
public class requestEquipBusinessPolicyDTO {
/**
* 业务策略查询流水号
*/
@JsonProperty(value = "EquipBizSeq")
private String equipBizSeq;
/**
* 充电设备接口编码
*/
@JsonProperty(value = "ConnectorID")
private String connectorID;
@JsonProperty(value = "OperatorID")
private String operatorId;
}

View File

@@ -0,0 +1,44 @@
package com.jsowell.pile.vo.huawei;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
/**
* 请求启动充电VO
*
* @author Lemon
* @Date 2024/1/24 9:21:03
*/
@Data
public class QueryStartChargeVO {
/**
* 充电订单号
*/
@JsonProperty(value = "StartChargeSeq")
private String startChargeSeq;
/**
* 充电订单状态
*/
@JsonProperty(value = "StartChargeSeqStat")
private Integer startChargeSeqStat;
/**
* 充电设备接口编码
*/
@JsonProperty(value = "ConnectorID")
private String connectorID;
/**
* 操作结果
*/
@JsonProperty(value = "SuccStat")
private Integer succStat;
/**
* 失败原因
*/
@JsonProperty(value = "FailReason")
private Integer failReason;
}