添加项目文件。
This commit is contained in:
20
SamplePre.Models/Models/TreeListItem.cs
Normal file
20
SamplePre.Models/Models/TreeListItem.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user