/// <summary> /// 获取栏目集合 /// </summary> /// <param name="input"></param> /// <returns></returns> public GetNodesOutput GetNodes(GetNodesInput input) { GetNodesOutput output = new GetNodesOutput(); int limit = input.Limit.HasValue ? input.Limit.Value : CMSConsts.PageLimit; int offset = input.Offset.HasValue ? input.Offset.Value : 0; var nodes = Mapper.DynamicMap <IList <NodeDto> >(_nodeRepository.GetNodesPagingByPublishmentSystemId(input.PublishmentSystemId, limit, offset)); output.Items = nodes; output.TotalCount = _nodeRepository.Count(node => node.PublishmentSystemId == input.PublishmentSystemId); return(output); }