using System.Collections.Generic; using Util.Applications.Dtos; namespace Util.Applications.Trees { /// /// 树形结果 /// public class TreeResult : TreeResultBase> { public TreeResult( IEnumerable data, bool async = false ) : base( data, async ) { } protected override TreeDto ToDestinationNode( TreeDto node ) { return new TreeDto { Id = node.Id, Leaf = node.Leaf, Children = node.Children }; } protected override List ToResult( List nodes ) { return nodes; } } }