feat 升级版本, 设备权限

This commit is contained in:
2024-01-10 11:06:15 +08:00
parent 4b7a0f8682
commit 76558e2f0a
43 changed files with 376 additions and 43 deletions

View File

@@ -33,6 +33,17 @@ public class DeviceGroupsController : ControllerBase
return await _deviceGroupService.GetPageAsync(request);
}
/// <summary>
/// 获取设备分组树
/// </summary>
/// <param name="showDevices">是否显示设备</param>
/// <returns></returns>
[HttpGet("tree")]
public async Task<List<DeviceGroupTreeResponse>> GetTreeAsync(bool showDevices)
{
return await _deviceGroupService.GetTreeAsync(showDevices);
}
/// <summary>
/// 设备分组保存
/// </summary>
@@ -61,7 +72,7 @@ public class DeviceGroupsController : ControllerBase
/// <param name="request"></param>
/// <returns></returns>
[HttpPost("assign")]
public async Task AssignDevicesAsync(AssignDevicesRequest request)
public async Task AssignDevicesAsync(DeviceAssignRequest request)
{
await _deviceGroupService.AssignDevicesAsync(request);
}