Commit 856953352f5f4fd264a7f29b28328aac8da326ec
1 parent
c99184de
fix(iot): 修正设备消息发送权限标识
- 将 iot:device:message-end 改为 iot:device:message-send - 与各数据库菜单 SQL 保持一致
Showing
1 changed file
with
2 additions
and
2 deletions
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/device/IotDeviceMessageController.java
| @@ -83,10 +83,10 @@ public class IotDeviceMessageController { | @@ -83,10 +83,10 @@ public class IotDeviceMessageController { | ||
| 83 | 83 | ||
| 84 | @PostMapping("/send") | 84 | @PostMapping("/send") |
| 85 | @Operation(summary = "发送消息", description = "可用于设备模拟") | 85 | @Operation(summary = "发送消息", description = "可用于设备模拟") |
| 86 | - @PreAuthorize("@ss.hasPermission('iot:device:message-end')") | 86 | + @PreAuthorize("@ss.hasPermission('iot:device:message-send')") |
| 87 | public CommonResult<Boolean> sendDeviceMessage(@Valid @RequestBody IotDeviceMessageSendReqVO sendReqVO) { | 87 | public CommonResult<Boolean> sendDeviceMessage(@Valid @RequestBody IotDeviceMessageSendReqVO sendReqVO) { |
| 88 | deviceMessageService.sendDeviceMessage(BeanUtils.toBean(sendReqVO, IotDeviceMessage.class)); | 88 | deviceMessageService.sendDeviceMessage(BeanUtils.toBean(sendReqVO, IotDeviceMessage.class)); |
| 89 | return success(true); | 89 | return success(true); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | -} | ||
| 93 | \ No newline at end of file | 92 | \ No newline at end of file |
| 93 | +} |