RosterListsQueryResponse.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
  2. //
  3. // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
  4. //
  5. // 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
  6. using System.Text.Json.Serialization;
  7. namespace Admin.NET.Plugin.DingTalk.RequestProxy.HRM.DTO;
  8. /// <summary>
  9. /// 获取员工花名册字段信息
  10. /// </summary>
  11. public class RosterListsQueryResponse
  12. {
  13. /// <summary>
  14. /// 结果列表
  15. /// </summary>
  16. [JsonProperty("result")]
  17. [JsonPropertyName("result")]
  18. public List<ResultDomain> Result { get; set; }
  19. }
  20. public class ResultDomain
  21. {
  22. /// <summary>
  23. /// 企业的corpId
  24. /// </summary>
  25. [JsonProperty("corpId")]
  26. [JsonPropertyName("corpId")]
  27. public string CorpId { get; set; }
  28. /// <summary>
  29. /// 员工的userId
  30. /// </summary>
  31. [JsonProperty("userId")]
  32. [JsonPropertyName("userId")]
  33. public string UserId { get; set; }
  34. /// <summary>
  35. /// 暂未开放
  36. /// </summary>
  37. [JsonProperty("unionId")]
  38. [JsonPropertyName("unionId")]
  39. public string UnionId { get; set; }
  40. /// <summary>
  41. /// 返回的字段信息列表
  42. /// </summary>
  43. [JsonProperty("fieldDataList")]
  44. [JsonPropertyName("fieldDataList")]
  45. public List<FieldDataDomain> FieldDataList { get; set; }
  46. }
  47. public class FieldDataDomain
  48. {
  49. /// <summary>
  50. /// 字段标识
  51. /// </summary>
  52. [JsonProperty("fieldCode")]
  53. [JsonPropertyName("fieldCode")]
  54. public string FieldCode { get; set; }
  55. /// <summary>
  56. /// 字段名称
  57. /// </summary>
  58. [JsonProperty("fieldName")]
  59. [JsonPropertyName("fieldName")]
  60. public string FieldName { get; set; }
  61. /// <summary>
  62. /// 分组标识
  63. /// </summary>
  64. [JsonProperty("groupId")]
  65. [JsonPropertyName("groupId")]
  66. public string GroupId { get; set; }
  67. /// <summary>
  68. /// 字段值列表
  69. /// </summary>
  70. [JsonProperty("fieldValueList")]
  71. [JsonPropertyName("fieldValueList")]
  72. public List<FieldValueDomain> FieldValueList { get; set; }
  73. }
  74. public class FieldValueDomain
  75. {
  76. /// <summary>
  77. /// 字段取值,选项类型字段对应选项的key
  78. /// </summary>
  79. [JsonProperty("value")]
  80. [JsonPropertyName("value")]
  81. public string Value { get; set; }
  82. /// <summary>
  83. /// 字段展示值,选项类型字段对应选项的value
  84. /// </summary>
  85. [JsonProperty("label")]
  86. [JsonPropertyName("label")]
  87. public string Label { get; set; }
  88. /// <summary>
  89. /// 第几条的明细标识,下标从0开始
  90. /// </summary>
  91. [JsonProperty("itemIndex")]
  92. [JsonPropertyName("itemIndex")]
  93. public int ItemIndex { get; set; }
  94. }