feat 获取用户所有设备权限

This commit is contained in:
cheche
2024-03-11 18:37:42 +08:00
parent 31b11bdcd3
commit 5684078071
3 changed files with 18 additions and 0 deletions

View File

@@ -42,4 +42,15 @@ public class GainfoPermissionsController : ControllerBase
{
return await _gainfoPermissions.GetDevicesUnderGroupByUserNoAsync(userNo, deviceGroupCode);
}
/// <summary>
/// 获取用户所有设备权限
/// </summary>
/// <param name="userNo"></param>
/// <returns></returns>
[HttpGet("assignDeviceCodes")]
public async Task<List<Guid>> GetAssignDeviceCodesAsync(string userNo)
{
return await _gainfoPermissions.GetAssignDeviceCodesAsync(userNo);
}
}