DepartmentTreeResult.cs 796 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Collections.Generic;
  2. namespace GxPress.Result.Department
  3. {
  4. /// <summary>
  5. /// 部门树
  6. /// </summary>
  7. public class DepartmentTreeResult
  8. {
  9. /// <summary>
  10. /// 部门id
  11. /// </summary>
  12. public int Id { get; set; }
  13. /// <summary>
  14. /// 部门名称
  15. /// </summary>
  16. public string Name { get; set; }
  17. /// <summary>
  18. /// 是否有下级节点
  19. /// </summary>
  20. public int ParentId { get; set; }
  21. /// <summary>
  22. /// 是否有下级节点
  23. /// </summary>
  24. public bool HasChildren { get; set; }
  25. /// <summary>
  26. /// 子集
  27. /// </summary>
  28. /// <value></value>
  29. public List<DepartmentTreeResult> Children { get; set; }
  30. }
  31. }