public ResponseResult <List <RoleResourcePermissionView> > GetRoleResourceList(ResourceQuery query) { var result = ResponseResult <List <RoleResourcePermissionView> > .Default(); try { var resourceService = new ResourceDataService(); var permissionList = resourceService.GetRoleResourceList(query.RoleID); result = ResponseResult <List <RoleResourcePermissionView> > .Success(permissionList); } catch (System.Exception ex) { result = ResponseResult <List <RoleResourcePermissionView> > .Error( string.Format("获取角色资源权限数据失败!{0}", ex.Message) ); } return(result); }