Jelajahi Sumber

fix(controller): 修改充电推送接口为POST方法

- 将推送启动充电结果接口由GET改为POST
- 将推送充电状态接口由GET改为POST
- 将推送停止充电结果接口由GET改为POST
- 将推送充电订单信息接口由GET改为POST
- 所有接口统一使用@RequestBody接收参数,提高请求安全性和规范性
SheepHy 2 minggu lalu
induk
melakukan
ca9b387d49

+ 4 - 4
src/main/java/com/zsElectric/boot/charging/controller/LinkDataController.java

@@ -25,7 +25,7 @@ public class LinkDataController {
      * @return 停推送启动充电结果VO
      */
     @Operation(summary = "推送启动充电结果")
-    @GetMapping("/notification_start_charge_result")
+    @PostMapping("/notification_start_charge_result")
     public ResponseParmsEntity chargeResponse(@RequestBody RequestParmsEntity requestDTO){
         return chargingReceptionService.chargeResponse(requestDTO);
     }
@@ -34,7 +34,7 @@ public class LinkDataController {
      * 2.6 推送充电状态
      * */
     @Operation(summary = "推送充电状态")
-    @GetMapping("/notification_equip_charge_status")
+    @PostMapping("/notification_equip_charge_status")
     public ResponseParmsEntity chargeStatusResponse(@RequestBody RequestParmsEntity requestDTO){
         return chargingReceptionService.chargeStatusResponse(requestDTO);
     }
@@ -43,7 +43,7 @@ public class LinkDataController {
      * 2.8 推送停止充电结果
      * */
     @Operation(summary = "推送停止充电结果")
-    @GetMapping("/notification_stop_charge_result")
+    @PostMapping("/notification_stop_charge_result")
     public ResponseParmsEntity stopChargeResponse(@RequestBody RequestParmsEntity requestDTO){
         return chargingReceptionService.stopChargeResponse(requestDTO);
     }
@@ -52,7 +52,7 @@ public class LinkDataController {
      * 2.9 推送充电订单信息
      * */
     @Operation(summary = "推送充电订单信息")
-    @GetMapping("/notification_charge_order_info")
+    @PostMapping("/notification_charge_order_info")
     public ResponseParmsEntity chargeOrderResponse(@RequestBody RequestParmsEntity requestDTO){
         return chargingReceptionService.chargeOrderResponse(requestDTO);
     }