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

SysOrgInput.cs 2.7 KiB

4 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 组织分页查询参数
  6. /// </summary>
  7. public class SysOrgPageInput : BasePageInput
  8. {
  9. /// <summary>
  10. /// 父ID
  11. /// </summary>
  12. public long ParentId { get; set; }
  13. /// <summary>
  14. /// 名称
  15. /// </summary>
  16. public string Name { get; set; }
  17. /// <summary>
  18. /// 编码
  19. /// </summary>
  20. public string Code { get; set; }
  21. /// <summary>
  22. /// 分类
  23. /// </summary>
  24. public string Category { get; set; }
  25. /// <summary>
  26. /// 状态
  27. /// </summary>
  28. public string Status { get; set; }
  29. }
  30. /// <summary>
  31. /// 组织添加参数
  32. /// </summary>
  33. public class SysOrgAddInput : SysOrg
  34. {
  35. }
  36. /// <summary>
  37. /// 组织修改参数
  38. /// </summary>
  39. public class SysOrgEditInput : SysOrgAddInput
  40. {
  41. /// <summary>
  42. /// Id
  43. /// </summary>
  44. [IdNotNull(ErrorMessage = "Id不能为空")]
  45. public override long Id { get; set; }
  46. }
  47. /// <summary>
  48. /// 组织复制参数
  49. /// </summary>
  50. public class SysOrgCopyInput
  51. {
  52. /// <summary>
  53. /// 目标ID
  54. /// </summary>
  55. public long TargetId { get; set; }
  56. /// <summary>
  57. /// 组织Id列表
  58. /// </summary>
  59. [Required(ErrorMessage = "Ids列表不能为空")]
  60. public List<long>? Ids { get; set; }
  61. /// <summary>
  62. /// 是否包含下级
  63. /// </summary>
  64. public bool ContainsChild { get; set; } = false;
  65. /// <summary>
  66. /// 是否包含职位
  67. /// </summary>
  68. public bool ContainsPosition { get; set; } = false;
  69. }
  70. /// <summary>
  71. /// 组织导入
  72. /// </summary>
  73. public class SysOrgImportInput : ImportTemplateInput
  74. {
  75. /// <summary>
  76. /// 名称
  77. ///</summary>
  78. [ImporterHeader(Name = "名称")]
  79. [Required(ErrorMessage = "名称不能为空")]
  80. public string Name { get; set; }
  81. /// <summary>
  82. /// 上级组织
  83. ///</summary>
  84. [ImporterHeader(Name = "上级组织")]
  85. [Required(ErrorMessage = "上级组织不能为空")]
  86. public string Names { get; set; }
  87. /// <summary>
  88. /// 分类
  89. ///</summary>
  90. [ImporterHeader(Name = "分类")]
  91. [Required(ErrorMessage = "分类不能为空")]
  92. public string Category { get; set; }
  93. /// <summary>
  94. /// 排序码
  95. ///</summary>
  96. [ImporterHeader(Name = "排序码")]
  97. public int SortCode { get; set; } = 1;
  98. /// <summary>
  99. /// 主管账号
  100. ///</summary>
  101. [ImporterHeader(Name = "主管账号")]
  102. [Required(ErrorMessage = "主管账号不能为空")]
  103. public string Director { get; set; }
  104. }
  105. /// <summary>
  106. /// 组织树查询参数
  107. /// 懒加载用
  108. /// </summary>
  109. public class SysOrgTreeInput
  110. {
  111. /// <summary>
  112. /// 父Id
  113. /// </summary>
  114. public long? ParentId { get; set; }
  115. }