SysMenuInput.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. using System;
  2. using YBEE.EQM.Core;
  3. namespace YBEE.EQM.Application
  4. {
  5. /// <summary>
  6. /// 菜单参数
  7. /// </summary>
  8. public class SysMenuInput
  9. {
  10. /// <summary>
  11. /// 菜单类型(字典 1目录 2菜单 3按钮)
  12. /// </summary>
  13. [Required]
  14. public MenuType MenuType { get; set; }
  15. /// <summary>
  16. /// 路由地址
  17. /// </summary>
  18. public string Router { get; set; }
  19. /// <summary>
  20. /// 权限标识
  21. /// </summary>
  22. public string Permission { get; set; }
  23. /// <summary>
  24. /// 打开方式(字典 0无 1组件 2内链 3外链)
  25. /// </summary>
  26. public MenuOpenType OpenType { get; set; }
  27. }
  28. /// <summary>
  29. /// 新增菜单参数
  30. /// </summary>
  31. public class AddSysMenuInput
  32. {
  33. /// <summary>
  34. /// 菜单类型(字典 1目录 2菜单 3按钮)
  35. /// </summary>
  36. [Required(ErrorMessage = "菜单类型不能为空")]
  37. public MenuType Type { get; set; }
  38. /// <summary>
  39. /// 父Id
  40. /// </summary>
  41. public int Pid { get; set; }
  42. /// <summary>
  43. /// 菜单类型(字典 1目录 2菜单 3按钮)
  44. /// </summary>
  45. [Required]
  46. public MenuType MenuType { get; set; }
  47. /// <summary>
  48. /// 名称
  49. /// </summary>
  50. public string Name { get; set; }
  51. /// <summary>
  52. /// 编码
  53. /// </summary>
  54. public string Code { get; set; }
  55. /// <summary>
  56. /// 图标
  57. /// </summary>
  58. public string Icon { get; set; }
  59. /// <summary>
  60. /// 路由地址
  61. /// </summary>
  62. public string Router { get; set; }
  63. /// <summary>
  64. /// 组件地址
  65. /// </summary>
  66. public string Component { get; set; }
  67. /// <summary>
  68. /// 权限标识
  69. /// </summary>
  70. public string Permission { get; set; }
  71. /// <summary>
  72. /// 打开方式(字典 0无 1组件 2内链 3外链)
  73. /// </summary>
  74. public MenuOpenType OpenType { get; set; }
  75. /// <summary>
  76. /// 是否可见
  77. /// </summary>
  78. public bool Visible { get; set; }
  79. /// <summary>
  80. /// 内链地址
  81. /// </summary>
  82. public string Link { get; set; }
  83. /// <summary>
  84. /// 重定向地址
  85. /// </summary>
  86. public string Redirect { get; set; }
  87. /// <summary>
  88. /// 排序
  89. /// </summary>
  90. public int Sort { get; set; }
  91. /// <summary>
  92. /// 备注
  93. /// </summary>
  94. public string Remark { get; set; }
  95. }
  96. /// <summary>
  97. /// 更新菜单参数
  98. /// </summary>
  99. public class UpdateSysMenuInput
  100. {
  101. /// <summary>
  102. /// 菜单Id
  103. /// </summary>
  104. [Required(ErrorMessage = "菜单Id不能为空")]
  105. public int Id { get; set; }
  106. /// <summary>
  107. /// 父Id
  108. /// </summary>DeleteMenuInput
  109. [Required(ErrorMessage = "父级菜单Id不能为空")]
  110. public int Pid { get; set; }
  111. /// <summary>
  112. /// 菜单类型(字典 1目录 2菜单 3按钮)
  113. /// </summary>
  114. [Required(ErrorMessage = "菜单类型不能为空")]
  115. public MenuType MenuType { get; set; }
  116. /// <summary>
  117. /// 名称
  118. /// </summary>
  119. public string Name { get; set; }
  120. /// <summary>
  121. /// 编码
  122. /// </summary>
  123. public string Code { get; set; }
  124. /// <summary>
  125. /// 图标
  126. /// </summary>
  127. public string Icon { get; set; }
  128. /// <summary>
  129. /// 路由地址
  130. /// </summary>
  131. public string Router { get; set; }
  132. /// <summary>
  133. /// 组件地址
  134. /// </summary>
  135. public string Component { get; set; }
  136. /// <summary>
  137. /// 权限标识
  138. /// </summary>
  139. public string Permission { get; set; }
  140. /// <summary>
  141. /// 打开方式(字典 0无 1组件 2内链 3外链)
  142. /// </summary>
  143. public MenuOpenType OpenType { get; set; }
  144. /// <summary>
  145. /// 是否可见
  146. /// </summary>
  147. public bool Visible { get; set; }
  148. /// <summary>
  149. /// 内链地址
  150. /// </summary>
  151. public string Link { get; set; }
  152. /// <summary>
  153. /// 重定向地址
  154. /// </summary>
  155. public string Redirect { get; set; }
  156. /// <summary>
  157. /// 排序
  158. /// </summary>
  159. public int Sort { get; set; }
  160. /// <summary>
  161. /// 备注
  162. /// </summary>
  163. public string Remark { get; set; }
  164. }
  165. /// <summary>
  166. /// 删除菜单参数
  167. /// </summary>
  168. public class DeleteSysMenuInput : BaseId
  169. {
  170. }
  171. }