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

ButtonInput.cs 983 B

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