平安校园
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

92 rader
1.6 KiB

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