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

PositionInput.cs 1.6 KiB

4 months ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 职位分页查询
  6. /// </summary>
  7. public class PositionPageInput : BasePageInput
  8. {
  9. /// <summary>
  10. /// 组织ID
  11. /// </summary>
  12. public long OrgId { get; set; }
  13. /// <summary>
  14. /// 职位列表
  15. /// </summary>
  16. public List<long> OrgIds { get; set; }
  17. /// <summary>
  18. /// 分类
  19. /// </summary>
  20. public string Category { get; set; }
  21. /// <summary>
  22. /// 状态
  23. /// </summary>
  24. public string Status { get; set; }
  25. }
  26. /// <summary>
  27. /// 职位新增参数
  28. /// </summary>
  29. public class PositionAddInput : SysPosition
  30. {
  31. /// <summary>
  32. /// 组织ID
  33. /// </summary>
  34. [IdNotNull(ErrorMessage = "OrgId不能为空")]
  35. public override long OrgId { get; set; }
  36. /// <summary>
  37. /// 名称
  38. /// </summary>
  39. [Required(ErrorMessage = "Name不能为空")]
  40. public override string Name { get; set; }
  41. /// <summary>
  42. /// 分类
  43. /// </summary>
  44. [Required(ErrorMessage = "Category不能为空")]
  45. public override string Category { get; set; }
  46. }
  47. /// <summary>
  48. /// 机构编辑参数
  49. /// </summary>
  50. public class PositionEditInput : PositionAddInput
  51. {
  52. /// <summary>
  53. /// Id
  54. /// </summary>
  55. [IdNotNull(ErrorMessage = "Id不能为空")]
  56. public override long Id { get; set; }
  57. }
  58. /// <summary>
  59. /// 机构选择器参数
  60. /// </summary>
  61. public class PositionSelectorInput : UserSelectorInput
  62. {
  63. }
  64. /// <summary>
  65. /// 机构树形选择器参数
  66. /// </summary>
  67. public class PositionTreeInput
  68. {
  69. /// <summary>
  70. /// 机构ID列表
  71. /// </summary>
  72. public List<long> OrgIds { get; set; }
  73. }