feat 升级版本, 设备权限
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user