diff --git a/iot-module/iot-manager/src/main/java/cc/iotkit/manager/controller/VirtualDeviceController.java b/iot-module/iot-manager/src/main/java/cc/iotkit/manager/controller/VirtualDeviceController.java index 6f2093e6..91345e8d 100644 --- a/iot-module/iot-manager/src/main/java/cc/iotkit/manager/controller/VirtualDeviceController.java +++ b/iot-module/iot-manager/src/main/java/cc/iotkit/manager/controller/VirtualDeviceController.java @@ -66,8 +66,8 @@ public class VirtualDeviceController { @ApiOperation("添加虚拟设备") @SaCheckPermission("iot:virtualDevice:add") @PostMapping("/add") - public void add(@Validated @RequestBody VirtualDevice virtualDevice) { - virtualDeviceData.save(virtualDevice); + public void add(@Validated @RequestBody Request bo) { + virtualDeviceData.save(bo.getData()); } /**