/// <summary> /// 根据用户清除用户授权 /// </summary> /// <param name="userIds">用户编号</param> /// <returns>返回执行结果</returns> public Result ClearByUser(IEnumerable <long> userIds) { if (userIds.IsNullOrEmpty()) { return(Result.FailedResult("没有指定任何用户信息")); } userPermissionRepository.RemoveByFirst(userIds.Select(c => User.Create(c))); return(Result.SuccessResult("修改成功")); }