Selaa lähdekoodia

fix(controller): 修正路径变量命名及注解参数

- 修正@GetMapping路径中的路径变量名大小写问题
- 在@PathVariable注解中添加对应的变量名参数
- 统一方法参数命名风格,改为小写驼峰命名规范
- 保证路径变量与方法参数绑定正确,避免请求失败
wzq 1 viikko sitten
vanhempi
commit
507eea2776

+ 3 - 3
src/main/java/com/zsElectric/boot/business/controller/applet/AppletStationController.java

@@ -86,9 +86,9 @@ public class AppletStationController {
      * @return 实时充电费用信息,如果没有正在充电的订单则返回null
      */
     @Operation(summary = "渠道方获取当前充电订单实时费用")
-    @GetMapping("/chargingCost/{ChargeOrderNo}")
-    public Result<AppChargingCostVO> getChargingCost(@PathVariable("") String ChargeOrderNo) {
-        return Result.success(appletHomeService.getChargingCost(ChargeOrderNo));
+    @GetMapping("/chargingCost/{chargeOrderNo}")
+    public Result<AppChargingCostVO> getChargingCost(@PathVariable("chargeOrderNo") String chargeOrderNo) {
+        return Result.success(appletHomeService.getChargingCost(chargeOrderNo));
     }
 
     /**