using System;
|
using System.Collections.Generic;
|
using System.ComponentModel.DataAnnotations;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace FlexJobApi.Core
|
{
|
/// <summary>
|
/// 树形数据
|
/// </summary>
|
/// <typeparam name="TEntity"></typeparam>
|
public interface ITreeData<TEntity>
|
where TEntity : CommonEntity, ITreeData<TEntity>, new()
|
{
|
/// <summary>
|
/// 上级Id
|
/// </summary>
|
Guid? ParentId { get; set; }
|
|
/// <summary>
|
/// 上级
|
/// </summary>
|
TEntity Parent { get; set; }
|
|
/// <summary>
|
/// 下级
|
/// </summary>
|
List<TEntity> Children { get; set; }
|
|
/// <summary>
|
/// 字典路径
|
/// </summary>
|
string Path { get; set; }
|
|
/// <summary>
|
/// 编号
|
/// </summary>
|
string Code { get; set; }
|
}
|
}
|