RosterListsQueryResponse.cs 2.8 KB

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