|
|
@@ -40,7 +40,7 @@ public class ChargerController {
|
|
|
private EnNotifyService enNotifyService;
|
|
|
|
|
|
@SneakyThrows
|
|
|
- @SysLog("充电站列表")
|
|
|
+ @ApiLog("充电站列表")
|
|
|
@GetMapping("/listStation")
|
|
|
R listChargeStation(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
|
// 请求en+接口
|
|
|
@@ -48,7 +48,7 @@ public class ChargerController {
|
|
|
return R.success(response);
|
|
|
}
|
|
|
|
|
|
- @SysLog("充电站状态")
|
|
|
+ @ApiLog("充电站状态")
|
|
|
@GetMapping("/stationStatus")
|
|
|
R stationStatus(@RequestParam("stationIds") String ids) {
|
|
|
// 请求en+接口
|
|
|
@@ -61,26 +61,26 @@ public class ChargerController {
|
|
|
return R.success(enPlusService.queryToken());
|
|
|
}
|
|
|
|
|
|
- @SysLog("启动充电")
|
|
|
+ @ApiLog("启动充电")
|
|
|
@GetMapping("/startCharge")
|
|
|
R startCharge(@RequestParam("connectorId") String connectorId, @RequestParam("stationId") String stationId) {
|
|
|
return R.success(chargeService.queryStartCharge(connectorId, stationId));
|
|
|
}
|
|
|
|
|
|
- @SysLog("停止充电")
|
|
|
+ @ApiLog("停止充电")
|
|
|
@GetMapping("/stopCharge/{connectorId}")
|
|
|
R stopCharge(@PathVariable("connectorId") String connectorId) {
|
|
|
chargeService.queryStopCharge(connectorId);
|
|
|
return R.success();
|
|
|
}
|
|
|
|
|
|
- @SysLog("查询充电状态")
|
|
|
+ @ApiLog("查询充电状态")
|
|
|
@GetMapping("/chargeStatus/{startChargeSeq}")
|
|
|
R<ChargeOrder> chargeStatus(@PathVariable("startChargeSeq") String startChargeSeq) {
|
|
|
return R.success(chargeService.queryEquipChargeStatus(startChargeSeq));
|
|
|
}
|
|
|
|
|
|
- @SysLog("查询设备充电策略")
|
|
|
+ @ApiLog("查询设备充电策略")
|
|
|
@GetMapping("/businessPolicy/{connectorId}")
|
|
|
R businessPolicy(@PathVariable("connectorId") String connectorId) {
|
|
|
return R.success(chargeService.queryEquipBusinessPolicy(connectorId));
|
|
|
@@ -98,7 +98,7 @@ public class ChargerController {
|
|
|
* @param json
|
|
|
* @return 0:接收 1:丢弃/忽略,不需要重试
|
|
|
*/
|
|
|
- @SysLog("EN+设备状态变化推送")
|
|
|
+ @ApiLog("EN+设备状态变化推送")
|
|
|
@PostMapping("/notification_stationStatus")
|
|
|
JSONObject notificationStationStatus(@RequestBody JSONObject json) {
|
|
|
// TODO: 2023-08-05 验签 业务逻辑
|
|
|
@@ -114,7 +114,7 @@ public class ChargerController {
|
|
|
* @param json
|
|
|
* @return StartChargeSeq SuccStat 0:成功 1:失败 FailReason 0:无 1:接收失败
|
|
|
*/
|
|
|
- @SysLog("EN+推送启动充电结果")
|
|
|
+ @ApiLog("EN+推送启动充电结果")
|
|
|
@PostMapping("/notification_start_charge_result")
|
|
|
@ResponseBody
|
|
|
EnResponse notificationStartChargeResult(@RequestBody JSONObject json) {
|
|
|
@@ -128,7 +128,7 @@ public class ChargerController {
|
|
|
* @param json
|
|
|
* @return
|
|
|
*/
|
|
|
- @SysLog("EN+推送启动充电结果")
|
|
|
+ @ApiLog("EN+推送启动充电结果")
|
|
|
@PostMapping("/notification_start_charge_status")
|
|
|
EnResponse notificationStartChargeStatus(@RequestBody JSONObject json) {
|
|
|
return new EnResponse(enNotifyService.handleNotificationEquipChargeStatus(json));
|