fix 二维码校验设备权限
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user