修改新增虚拟设备字段信息为NULL的问题

V0.5.x
zhangpengxiang 2024-02-22 16:03:12 +08:00
parent 92efe63919
commit 5eea178ab5
1 changed files with 2 additions and 2 deletions

View File

@ -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<VirtualDevice> bo) {
virtualDeviceData.save(bo.getData());
}
/**