mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
add 联联平台相关工具类
This commit is contained in:
@@ -32,6 +32,24 @@ public class LianLianController extends BaseController {
|
||||
private LianLianService lianLianService;
|
||||
|
||||
|
||||
@PostMapping("/pushStationInfo")
|
||||
public RestApiResponse<?> pushStationInfo(@RequestBody QueryStationInfoDTO dto) {
|
||||
logger.info("推送联联平台充电站信息 params:{}", JSONObject.toJSONString(dto));
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
lianLianService.pushStationInfo(Long.parseLong(dto.getStationID()));
|
||||
response = new RestApiResponse<>();
|
||||
}catch (BusinessException e) {
|
||||
logger.error("推送联联平台充电站信息 error",e);
|
||||
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||
}catch (Exception e) {
|
||||
logger.error("推送联联平台充电站信息 error", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
logger.info("推送联联平台充电站信息 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 联联平台查询充电站信息
|
||||
* http://localhost:8080/LianLian/query_stations_info
|
||||
@@ -58,6 +76,7 @@ public class LianLianController extends BaseController {
|
||||
|
||||
/**
|
||||
* 联联平台查询充电站状态信息
|
||||
* http://localhost:8080/LianLian/query_station_status
|
||||
* @param StationIDs
|
||||
* @return
|
||||
*/
|
||||
@@ -84,6 +103,8 @@ public class LianLianController extends BaseController {
|
||||
|
||||
/**
|
||||
* 查询统计信息
|
||||
* http://localhost:8080/LianLian/query_station_stats
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@@ -107,6 +128,7 @@ public class LianLianController extends BaseController {
|
||||
|
||||
/**
|
||||
* 请求设备认证
|
||||
* http://localhost:8080/LianLian/query_equip_auth
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@@ -130,6 +152,7 @@ public class LianLianController extends BaseController {
|
||||
|
||||
/**
|
||||
* 请求启动充电
|
||||
* http://localhost:8080/LianLian/query_start_charge
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@@ -153,6 +176,7 @@ public class LianLianController extends BaseController {
|
||||
|
||||
/**
|
||||
* 查询充电状态
|
||||
* http://localhost:8080/LianLian/query_equip_charge_status/{startChargeSeq}
|
||||
* @param startChargeSeq
|
||||
* @return
|
||||
*/
|
||||
@@ -176,6 +200,7 @@ public class LianLianController extends BaseController {
|
||||
|
||||
/**
|
||||
* 请求停止充电
|
||||
* http://localhost:8080/LianLian/query_stop_charge
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user