mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-10 18:30:02 +08:00
update 中电联service
This commit is contained in:
@@ -0,0 +1,35 @@
|
|||||||
|
package com.jsowell.thirdparty.zhongdianlian.domain;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO
|
||||||
|
*
|
||||||
|
* @author Lemon
|
||||||
|
* @Date 2023/9/7 14:03
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ZDLConnectorInfo {
|
||||||
|
@JSONField(name = "ConnectorID")
|
||||||
|
private String connectorId;
|
||||||
|
|
||||||
|
@JSONField(name = "ConnectorType")
|
||||||
|
private String connectorType;
|
||||||
|
|
||||||
|
@JSONField(name = "VoltageUpperLimits")
|
||||||
|
private String voltageUpperLimits;
|
||||||
|
|
||||||
|
@JSONField(name = "VoltageLowerLimits")
|
||||||
|
private String voltageLowerLimits;
|
||||||
|
|
||||||
|
@JSONField(name = "Current")
|
||||||
|
private String current;
|
||||||
|
|
||||||
|
@JSONField(name = "Power")
|
||||||
|
private String power;
|
||||||
|
|
||||||
|
@JSONField(name = "NationalStandard")
|
||||||
|
private String nationalStandard;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,7 +1,11 @@
|
|||||||
package com.jsowell.thirdparty.zhongdianlian.domain;
|
package com.jsowell.thirdparty.zhongdianlian.domain;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备基本信息
|
* 设备基本信息
|
||||||
*
|
*
|
||||||
@@ -10,7 +14,15 @@ import lombok.Data;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class ZDLEquipmentInfo {
|
public class ZDLEquipmentInfo {
|
||||||
|
@JSONField(name = "EquipmentID")
|
||||||
private String equipmentId;
|
private String equipmentId;
|
||||||
|
|
||||||
private String EquipmentType;
|
@JSONField(name = "EquipmentType")
|
||||||
|
private String equipmentType;
|
||||||
|
|
||||||
|
@JSONField(name = "Power")
|
||||||
|
private BigDecimal power;
|
||||||
|
|
||||||
|
@JSONField(name = "ConnectorInfos")
|
||||||
|
private List<ZDLConnectorInfo> connectorInfos;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.jsowell.thirdparty.zhongdianlian.domain;
|
package com.jsowell.thirdparty.zhongdianlian.domain;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
@@ -13,19 +14,48 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class ZDLStationInfo {
|
public class ZDLStationInfo {
|
||||||
|
@JSONField(name = "StationID")
|
||||||
private String stationId;
|
private String stationId;
|
||||||
|
|
||||||
|
@JSONField(name = "OperatorID")
|
||||||
private String operatorId;
|
private String operatorId;
|
||||||
|
|
||||||
|
@JSONField(name = "EquipmentOwnerID")
|
||||||
private String equipmentOwnerId;
|
private String equipmentOwnerId;
|
||||||
|
|
||||||
|
@JSONField(name = "StationName")
|
||||||
private String stationName;
|
private String stationName;
|
||||||
|
|
||||||
|
@JSONField(name = "CountryCode")
|
||||||
private String countryCode;
|
private String countryCode;
|
||||||
|
|
||||||
|
@JSONField(name = "AreaCode")
|
||||||
private String areaCode;
|
private String areaCode;
|
||||||
|
|
||||||
|
@JSONField(name = "Address")
|
||||||
private String address;
|
private String address;
|
||||||
|
|
||||||
|
@JSONField(name = "ServiceTel")
|
||||||
private String serviceTel;
|
private String serviceTel;
|
||||||
|
|
||||||
|
@JSONField(name = "StationType")
|
||||||
private Integer stationType;
|
private Integer stationType;
|
||||||
|
|
||||||
|
@JSONField(name = "StationStatus")
|
||||||
private Integer stationStatus;
|
private Integer stationStatus;
|
||||||
|
|
||||||
|
@JSONField(name = "ParkNums")
|
||||||
private Integer parkNums;
|
private Integer parkNums;
|
||||||
|
|
||||||
|
@JSONField(name = "StationLng")
|
||||||
private BigDecimal stationLng;
|
private BigDecimal stationLng;
|
||||||
|
|
||||||
|
@JSONField(name = "StationLat")
|
||||||
private BigDecimal stationLat;
|
private BigDecimal stationLat;
|
||||||
|
|
||||||
|
@JSONField(name = "Construction")
|
||||||
private Integer construction;
|
private Integer construction;
|
||||||
|
|
||||||
|
@JSONField(name = "EquipmentInfos")
|
||||||
private List<ZDLEquipmentInfo> equipmentInfos;
|
private List<ZDLEquipmentInfo> equipmentInfos;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
package com.jsowell.thirdparty.zhongdianlian.service;
|
package com.jsowell.thirdparty.zhongdianlian.service;
|
||||||
|
|
||||||
|
import com.jsowell.pile.dto.QueryStationInfoDTO;
|
||||||
import com.jsowell.thirdparty.zhongdianlian.dto.ZDLGetTokenDTO;
|
import com.jsowell.thirdparty.zhongdianlian.dto.ZDLGetTokenDTO;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 中电联 Service
|
* 中电联 Service
|
||||||
*
|
*
|
||||||
@@ -10,5 +13,17 @@ import com.jsowell.thirdparty.zhongdianlian.dto.ZDLGetTokenDTO;
|
|||||||
*/
|
*/
|
||||||
public interface ZDLService {
|
public interface ZDLService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取令牌
|
||||||
|
* @param dto
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
public String ZDLGetToken(ZDLGetTokenDTO dto);
|
public String ZDLGetToken(ZDLGetTokenDTO dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询站点信息
|
||||||
|
* @param dto
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Map<String, String> queryStationsInfo(QueryStationInfoDTO dto);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
package com.jsowell.thirdparty.zhongdianlian.service.impl;
|
package com.jsowell.thirdparty.zhongdianlian.service.impl;
|
||||||
|
|
||||||
|
import com.jsowell.pile.dto.QueryStationInfoDTO;
|
||||||
import com.jsowell.thirdparty.lianlian.service.LianLianService;
|
import com.jsowell.thirdparty.lianlian.service.LianLianService;
|
||||||
import com.jsowell.thirdparty.zhongdianlian.dto.ZDLGetTokenDTO;
|
import com.jsowell.thirdparty.zhongdianlian.dto.ZDLGetTokenDTO;
|
||||||
import com.jsowell.thirdparty.zhongdianlian.service.ZDLService;
|
import com.jsowell.thirdparty.zhongdianlian.service.ZDLService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 中电联 Service
|
* 中电联 Service
|
||||||
*
|
*
|
||||||
@@ -32,5 +35,14 @@ public class ZDLServiceImpl implements ZDLService {
|
|||||||
dto.getOperatorSecret(), dto.getDataSecretIv(), dto.getSignSecret(), dto.getDataSecret());
|
dto.getOperatorSecret(), dto.getDataSecretIv(), dto.getSignSecret(), dto.getDataSecret());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询站点信息
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Map<String, String> queryStationsInfo(QueryStationInfoDTO dto) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user