21 lines
517 B
C#
21 lines
517 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace SamplePre.Models
|
|||
|
|
{
|
|||
|
|
// 定义树节点数据模型
|
|||
|
|
public class TreeListItem
|
|||
|
|
{
|
|||
|
|
// 节点唯一ID(主键)
|
|||
|
|
public string ID { get; set; }
|
|||
|
|
// 父节点ID(根节点的ParentID为0,子节点对应父节点的ID)
|
|||
|
|
public string ParentID { get; set; }
|
|||
|
|
// 节点显示的文本
|
|||
|
|
public string DisplayText { get; set; }
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|