Commit 2a5db419a825c7d102d94bb30b4f18fd63e78e7a

Authored by 王彪总
1 parent fdd2cde4

fix(garden): 设备用户更新接口 @PutMapping 改为 @PostMapping

解决 HttpRequestMethodNotSupportedException: Request method 'POST' is not supported
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/deviceuser/DeviceUserController.java
... ... @@ -45,7 +45,7 @@ public class DeviceUserController {
45 45 return success(deviceUserService.createDeviceUser(createReqVO));
46 46 }
47 47  
48   - @PutMapping("/update/device")
  48 + @PostMapping("/update/device")
49 49 @Operation(summary = "更新设备用户关系")
50 50 //@PreAuthorize("@ss.hasPermission('garden:device-user:update')")
51 51 public CommonResult<Boolean> updateDevice(@Valid @RequestBody DeviceUserUpdateReqVO updateReqVO) {
... ... @@ -119,4 +119,4 @@ public class DeviceUserController {
119 119  
120 120  
121 121  
122   -}
123 122 \ No newline at end of file
  123 +}
... ...