using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace System.Common { public class TreeModel { private int _id; /// /// Id /// public int id { set { _id = value; } get { return _id; } } /// /// 父级ID /// public int parentid { get; set; } = 0; private string _iconcls; /// /// 图标 /// public string iconcls { set { _iconcls = value; } get { return _iconcls; } } private string _text; /// /// 树节点显示文本 /// public string text { set { _text = value; } get { return _text; } } private List _children=null; public List children { set { _children = value; } get { return _children; } } } }