平安校园
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.
 
 
 
 
 
 

54 lines
983 B

  1. //
  2. namespace SafeCampus.System;
  3. public class ButtonPageInput : BasePageInput
  4. {
  5. /// <summary>
  6. /// 父ID
  7. /// </summary>
  8. [Required(ErrorMessage = "ParentId不能为空")]
  9. public long? ParentId { get; set; }
  10. }
  11. /// <summary>
  12. /// 添加按钮参数
  13. /// </summary>
  14. public class ButtonAddInput : SysResource
  15. {
  16. /// <summary>
  17. /// 父ID
  18. /// </summary>
  19. [Required(ErrorMessage = "ParentId不能为空")]
  20. public override long? ParentId { get; set; }
  21. /// <summary>
  22. /// 标题
  23. /// </summary>
  24. [Required(ErrorMessage = "Title不能为空")]
  25. public override string Title { get; set; }
  26. /// <summary>
  27. /// 编码
  28. /// </summary>
  29. [Required(ErrorMessage = "Code不能为空")]
  30. public override string Code { get; set; }
  31. }
  32. public class ButtonEditInput : ButtonAddInput
  33. {
  34. /// <summary>
  35. /// ID
  36. /// </summary>
  37. [IdNotNull(ErrorMessage = "Id不能为空")]
  38. public override long Id { get; set; }
  39. }