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

DictInput.cs 1.5 KiB

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