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

89 lines
1.5 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 字典查询参数
  5. /// </summary>
  6. public class DictInput
  7. {
  8. }
  9. /// <summary>
  10. /// 字典树参数
  11. /// </summary>
  12. public class DictTreeInput
  13. {
  14. /// <summary>
  15. /// 字典分类
  16. /// </summary>
  17. public string Category { get; set; }
  18. }
  19. /// <summary>
  20. /// 字典查询参数
  21. /// </summary>
  22. public class DictPageInput : BasePageInput
  23. {
  24. /// <summary>
  25. /// 父id
  26. ///</summary>
  27. public long ParentId { get; set; }
  28. /// <summary>
  29. /// 分类
  30. ///</summary>
  31. public string Category { get; set; } = SysDictConst.DICT_CATEGORY_FRM;
  32. }
  33. /// <summary>
  34. /// 添加字典参数
  35. /// </summary>
  36. public class DictAddInput : SysDict
  37. {
  38. /// <summary>
  39. /// 父ID
  40. /// </summary>
  41. public override long ParentId { get; set; } = 0;
  42. /// <summary>
  43. /// 字典名称
  44. /// </summary>
  45. [Required(ErrorMessage = "DictLabel不能为空")]
  46. public override string DictLabel { get; set; }
  47. /// <summary>
  48. /// 字典值
  49. /// </summary>
  50. [Required(ErrorMessage = "DictValue不能为空")]
  51. public override string DictValue { get; set; }
  52. }
  53. /// <summary>
  54. /// 编辑字典参数
  55. /// </summary>
  56. public class DictEditInput : DictAddInput
  57. {
  58. /// <summary>
  59. /// ID
  60. /// </summary>
  61. [IdNotNull(ErrorMessage = "Id不能为空")]
  62. public override long Id { get; set; }
  63. }
  64. /// <summary>
  65. /// 删除字典参数
  66. /// </summary>
  67. public class DictDeleteInput : BaseIdListInput
  68. {
  69. }