平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SpaInput.cs 1.2 KiB

4 months ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 单页输入参数
  6. /// </summary>
  7. public class SpaPageInput : BasePageInput
  8. {
  9. /// <summary>
  10. /// 菜单类型
  11. /// </summary>
  12. public string MenuType { get; set; }
  13. }
  14. /// <summary>
  15. /// 单页输入参数
  16. /// </summary>
  17. public class SpaAddInput : SysResource
  18. {
  19. /// <summary>
  20. /// 标题
  21. /// </summary>
  22. [Required(ErrorMessage = "Title不能为空")]
  23. public override string Title { get; set; }
  24. /// <summary>
  25. /// 菜单类型
  26. /// </summary>
  27. [Required(ErrorMessage = "Title不能为空")]
  28. public override string MenuType { get; set; }
  29. /// <summary>
  30. /// 路径
  31. /// </summary>
  32. [Required(ErrorMessage = "Path不能为空")]
  33. public override string Path { get; set; }
  34. /// <summary>
  35. /// 图标
  36. /// </summary>
  37. [Required(ErrorMessage = "Icon不能为空")]
  38. public override string Icon { get; set; }
  39. }
  40. /// <summary>
  41. /// 单页修改参数
  42. /// </summary>
  43. public class SpaEditInput : SpaAddInput
  44. {
  45. /// <summary>
  46. /// ID
  47. /// </summary>
  48. [IdNotNull(ErrorMessage = "Id不能为空")]
  49. public override long Id { get; set; }
  50. }