足力健后端,使用.netcore版本,合并1个项目使用

TreeModel.cs 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace System.Common
  7. {
  8. public class TreeModel
  9. {
  10. private int _id;
  11. /// <summary>
  12. /// Id
  13. /// </summary>
  14. public int id
  15. {
  16. set { _id = value; }
  17. get { return _id; }
  18. }
  19. /// <summary>
  20. /// 父级ID
  21. /// </summary>
  22. public int parentid { get; set; } = 0;
  23. private string _iconcls;
  24. /// <summary>
  25. /// 图标
  26. /// </summary>
  27. public string iconcls
  28. {
  29. set { _iconcls = value; }
  30. get { return _iconcls; }
  31. }
  32. private string _text;
  33. /// <summary>
  34. /// 树节点显示文本
  35. /// </summary>
  36. public string text
  37. {
  38. set { _text = value; }
  39. get { return _text; }
  40. }
  41. private List<TreeModel> _children=null;
  42. public List<TreeModel> children
  43. {
  44. set { _children = value; }
  45. get { return _children; }
  46. }
  47. }
  48. }