| | |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | |
| | | public List<int> GetAllChildrenRoleId(int roleId) |
| | | { |
| | | return GetAllChildren(roleId).Select(x => x.Id).ToList(); |
| | | } |
| | | |
| | | public List<RoleNodes> GetAllChildren(int roleId) |
| | | { |
| | | if (roleId <= 0) return new List<RoleNodes>() { }; |
| | |
| | | x.AuthValue = ""; |
| | | }); |
| | | //å°åæ¶çæé设置为"" |
| | | _RoleAuthRepository.UpdateData(delAuths); |
| | | _RoleAuthRepository.DeleteData(delAuths); |
| | | |
| | | int addCount = updateAuths.Where(x => x.AuthId <= 0).Count(); |
| | | int updateCount = updateAuths.Where(x => x.AuthId > 0).Count(); |