Exemple #1
0
        /// <summary>
        /// 获取角色权限主键数组
        /// </summary>
        /// <param name="userInfo">用户</param>
        /// <param name="roleId">角色主键</param>
        /// <returns>权限列表</returns>
        public List <BaseModuleEntity> GetRolePermissionList(BaseUserInfo userInfo, string roleId)
        {
            List <BaseModuleEntity> result = null;

            var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod());

            ServiceUtil.ProcessUserCenterReadDb(userInfo, parameter, (dbHelper) =>
            {
                var manager = new BasePermissionManager(dbHelper, userInfo);
                result      = manager.GetPermissionList(userInfo.SystemCode, roleId, "Role");
            });

            return(result);
        }