You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
684 B
34 lines
684 B
3 years ago
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace learun.util
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 版 本 EasyCode EC管理后台
|
||
|
/// Copyright (c) 2019-present EC管理有限公司
|
||
|
/// 创建人:tobin
|
||
|
/// 日 期:2019.09.10
|
||
|
/// 描 述:树结构数据
|
||
|
/// </summary>
|
||
|
public class TreeModelEx<T> where T : class
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 节点id
|
||
|
/// </summary>
|
||
|
public string id { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 父级节点ID
|
||
|
/// </summary>
|
||
|
public string parentId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 数据
|
||
|
/// </summary>
|
||
|
public T data { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 子节点列表数据
|
||
|
/// </summary>
|
||
|
public List<TreeModelEx<T>> ChildNodes { get; set; }
|
||
|
}
|
||
|
}
|