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

141 lines
2.7 KiB

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