feat 获取用户所有设备权限
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user