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