using System.Collections;
using System.Collections.Generic;
namespace Magic.Core.Service;
///
/// 组织机构树
///
public class OrgTreeNode : ITreeNode
{
///
/// Id
///
public long Id { get; set; }
///
/// 父Id
///
public long ParentId { get; set; }
///
/// 名称
///
public string Title { get; set; }
///
/// 值
///
public string Value { get; set; }
///
/// 排序,越小优先级越高
///
public int Weight { get; set; }
///
/// 子节点
///
public List Children { get; set; } = new List();
///
/// 上一级Id
///
public long Pid { get; set; }
public long GetId()
{
return Id;
}
public long GetPid()
{
return ParentId;
}
public void SetChildren(IList children)
{
Children = (List)children;
}
}