namespace DS.WMS.Core.System.Dtos; /// /// 机构树信息 /// public class OrgTree { public string Title { get; set; } public long? Value { get; set; } public long? ParentId { get; set; } public List Children { get; set; } /// /// 无参构造函数 /// public OrgTree() { Children = new List(); } /// /// 有参构造函数 /// /// 子id /// 名称 /// 父id public OrgTree(long id, string name, long parentId) { this.Value = id; this.Title = name; this.ParentId = parentId; Children = new List(); } /// /// 有参构造函数 /// /// 子id /// 名称 /// 父节点 public OrgTree(long id, string name, OrgTree parent) { this.Value = id; this.Title = name; this.ParentId = parent.Value; Children = new List(); } }