mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 青海平台controller测试用接口
This commit is contained in:
@@ -8,6 +8,7 @@ import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.common.util.JWTUtils;
|
||||
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
|
||||
import com.jsowell.pile.dto.PushRealTimeInfoDTO;
|
||||
import com.jsowell.pile.dto.QueryStartChargeDTO;
|
||||
import com.jsowell.pile.dto.QueryStationInfoDTO;
|
||||
import com.jsowell.pile.service.ThirdPartyPlatformConfigService;
|
||||
@@ -151,7 +152,7 @@ public class QingHaiController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/pushStationPower")
|
||||
public RestApiResponse<?> pushStationPower(List<String> stationIds) {
|
||||
public RestApiResponse<?> pushStationPower(@RequestBody List<String> stationIds) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
String result = qingHaiPlatformServiceImpl.notificationPowerInfo(stationIds);
|
||||
@@ -163,4 +164,40 @@ public class QingHaiController extends BaseController {
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 推送设备状态变化
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/PushRealTimeInfo")
|
||||
public RestApiResponse<?> pushStationPower(@RequestBody PushRealTimeInfoDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
String result = qingHaiPlatformServiceImpl.notificationStationStatus(dto);
|
||||
response = new RestApiResponse<>(result);
|
||||
}catch (Exception e) {
|
||||
logger.error("青海平台推送设备状态变化 error", e);
|
||||
}
|
||||
logger.info("青海平台推送设备状态变化 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 推送充电状态
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/notificationEquipChargeStatus/{orderCode}")
|
||||
public RestApiResponse<?> notificationEquipChargeStatus(@PathVariable("orderCode") String orderCode) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
String result = qingHaiPlatformServiceImpl.notificationEquipChargeStatus(orderCode);
|
||||
response = new RestApiResponse<>(result);
|
||||
}catch (Exception e) {
|
||||
logger.error("青海平台推送充电状态 error", e);
|
||||
}
|
||||
logger.info("青海平台推送充电状态 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user