fix 二维码校验设备权限

This commit is contained in:
2024-11-22 15:20:49 +08:00
parent 39257b0825
commit 405acce916
19 changed files with 201 additions and 423 deletions

View File

@@ -84,29 +84,12 @@ public class DevicePermissionsController : ControllerBase
return await _devicePermissionService.GetGainfoPageByDeviceAsync(request);
}
/// <summary>
/// 获取当前所有人的权限code
/// </summary>
/// <returns></returns>
[AllowAnonymous]
[HttpPost("all-permission")]
[IgnoreTenant]
public async Task<PermissionUsersInfoDto> GetPermissionUsersInfoAsync(List<string> userNos)
{
return await _devicePermissionService.GetPermissionUsersInfoAsync(userNos);
}
/// <summary>
/// 根据权限code生成下发任务
/// </summary>
/// <param name="beforeDto"></param>
/// <returns></returns>
[AllowAnonymous]
[HttpGet("userPermissionCodes")]
[IgnoreTenant]
[HttpPost("re-permission")]
public async Task<int> ReGeneratePermissionUsersInfoAsync(PermissionUsersInfoDto beforeDto)
public async Task<List<Guid>> GetAssignDeviceCodesAsync(string userCode)
{
return await _devicePermissionService.ReGeneratePermissionUsersInfoAsync(beforeDto);
return await _devicePermissionService.GetAssignDeviceCodesAsync(userCode);
}
[AllowAnonymous]