Пример #1
0
 /// <summary>
 /// 清除角色关联账户的权限缓存
 /// </summary>
 /// <param name="roleId"></param>
 /// <returns></returns>
 private async Task ClearAccountPermissionCache(Guid roleId)
 {
     var relationList = await _accountRoleRepository.QueryByRole(roleId);
     if (relationList.Any())
     {
         foreach (var relation in relationList)
         {
             _accountService.ClearPermissionListCache(relation.AccountId);
         }
     }
 }