Menus.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. using System.Collections.Generic;
  2. using Datory.Annotations;
  3. namespace GxPress.Entity.Menus
  4. {
  5. /// <summary>
  6. /// 系统管理角色权限
  7. /// </summary>
  8. [DataTable("tede_menus")]
  9. public class Menus : Datory.Entity
  10. {
  11. /// <summary>
  12. /// 父级ID
  13. /// </summary>
  14. /// <value></value>
  15. [DataColumn]
  16. public int ParentId { get; set; }
  17. /// <summary>
  18. /// 标题
  19. /// </summary>
  20. /// <value></value>
  21. [DataColumn]
  22. public string Title { get; set; }
  23. /// <summary>
  24. /// 名称
  25. /// </summary>
  26. /// <value></value>
  27. [DataColumn]
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// 图标名称
  31. /// </summary>
  32. /// <value></value>
  33. [DataColumn]
  34. public string Icon { get; set; }
  35. /// <summary>
  36. /// 孩子
  37. /// </summary>
  38. /// <value></value>
  39. public List<Menus> Children { get; set; }
  40. /// <summary>
  41. /// 路径
  42. /// </summary>
  43. /// <value></value>
  44. [DataColumn]
  45. public string Path { get; set; }
  46. }
  47. /// <summary>
  48. ///
  49. /// </summary>
  50. public class Children
  51. {
  52. /// <summary>
  53. ///
  54. /// </summary>
  55. /// <value></value>
  56. public int Id { get; set; }
  57. /// <summary>
  58. /// 父级ID
  59. /// </summary>
  60. /// <value></value>
  61. public int ParentId { get; set; }
  62. /// <summary>
  63. /// 标题
  64. /// </summary>
  65. /// <value></value>
  66. public string Title { get; set; }
  67. /// <summary>
  68. /// 名称
  69. /// </summary>
  70. /// <value></value>
  71. public string Name { get; set; }
  72. /// <summary>
  73. /// 图标名称
  74. /// </summary>
  75. /// <value></value>
  76. public string Icon { get; set; }
  77. /// <summary>
  78. /// 路径
  79. /// </summary>
  80. /// <value></value>
  81. public string Path { get; set; }
  82. }
  83. }