| 12345678910111213141516171819202122232425262728293031323334 |
- using System.ComponentModel.DataAnnotations;
- using VberZero.AppService.Base.Dto;
- using VberZero.BaseSystem;
- namespace VberZero.AppService.Base.TreeBase.Dto;
- public class VzTreeEntityDto<TPrimaryKey> : VzEntityDto<TPrimaryKey>, IVzTreeEntityDto<TPrimaryKey>
- {
- /// <summary>
- /// 父节点
- /// </summary>
- public TPrimaryKey ParentNo { get; set; }
- public string ParentName { get; set; }
- /// <summary>
- /// 路径
- /// </summary>
- [StringLength(TreeEntityBase<TPrimaryKey>.PathMaxLength)]
- public string Path { get; set; }
- /// <summary>
- /// 是否是叶子节点
- /// </summary>
- public bool IsLeaf { get; set; }
- /// <summary>
- /// 节点深度
- /// </summary>
- public int Depth { get; set; }
- public int Sort { get; set; }
- }
|