UserListResponse.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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.User.DTO;
  9. /// <summary>
  10. /// 获取部门用户详情
  11. /// </summary>
  12. public class UserListResponse : DingtalkResponseErrorResult<DingtalkResponseHasMoreList<UserListResponseResultDomain>>
  13. {
  14. }
  15. public class UserListResponseResultDomain
  16. {
  17. /// <summary>
  18. /// 是否激活了钉钉
  19. /// </summary>
  20. [JsonProperty("active")]
  21. [JsonPropertyName("active")]
  22. public bool Active { get; set; }
  23. /// <summary>
  24. /// 是否为企业的管理员
  25. /// </summary>
  26. [JsonProperty("admin")]
  27. [JsonPropertyName("admin")]
  28. public bool Admin { get; set; }
  29. /// <summary>
  30. /// 头像地址
  31. /// </summary>
  32. [JsonProperty("avatar")]
  33. [JsonPropertyName("avatar")]
  34. public string Avatar { get; set; }
  35. /// <summary>
  36. /// 是否为企业的老板
  37. /// </summary>
  38. [JsonProperty("boss")]
  39. [JsonPropertyName("boss")]
  40. public bool Boss { get; set; }
  41. /// <summary>
  42. /// 所属部门id列表
  43. /// </summary>
  44. [JsonProperty("dept_id_list")]
  45. [JsonPropertyName("dept_id_list")]
  46. public List<long> DeptIdList { get; set; }
  47. /// <summary>
  48. /// 员工在部门中的排序
  49. /// </summary>
  50. [JsonProperty("dept_order")]
  51. [JsonPropertyName("dept_order")]
  52. public long DeptOrder { get; set; }
  53. /// <summary>
  54. /// 员工邮箱
  55. /// </summary>
  56. [JsonProperty("email")]
  57. [JsonPropertyName("email")]
  58. public string Email { get; set; }
  59. /// <summary>
  60. /// 是否企业账号
  61. /// </summary>
  62. [JsonProperty("exclusive_account")]
  63. [JsonPropertyName("exclusive_account")]
  64. public bool ExclusiveAccount { get; set; }
  65. /// <summary>
  66. /// 扩展属性
  67. /// </summary>
  68. [JsonProperty("extension")]
  69. [JsonPropertyName("extension")]
  70. public string Extension { get; set; }
  71. /// <summary>
  72. /// 是否号码隐藏
  73. /// </summary>
  74. [JsonProperty("hide_mobile")]
  75. [JsonPropertyName("hide_mobile")]
  76. public bool HideMobile { get; set; }
  77. /// <summary>
  78. /// 入职时间,Unix时间戳,单位毫秒
  79. /// </summary>
  80. [JsonProperty("hired_date")]
  81. [JsonPropertyName("hired_date")]
  82. public long HiredDate { get; set; }
  83. /// <summary>
  84. /// 员工工号
  85. /// </summary>
  86. [JsonProperty("job_number")]
  87. [JsonPropertyName("job_number")]
  88. public string JobNumber { get; set; }
  89. /// <summary>
  90. /// 是否是部门的主管
  91. /// </summary>
  92. [JsonProperty("leader")]
  93. [JsonPropertyName("leader")]
  94. public bool Leader { get; set; }
  95. /// <summary>
  96. /// 手机号码
  97. /// </summary>
  98. [JsonProperty("mobile")]
  99. [JsonPropertyName("mobile")]
  100. public string Mobile { get; set; }
  101. /// <summary>
  102. /// 用户姓名
  103. /// </summary>
  104. [JsonProperty("name")]
  105. [JsonPropertyName("name")]
  106. public string Name { get; set; }
  107. /// <summary>
  108. /// 员工的企业邮箱
  109. /// </summary>
  110. [JsonProperty("org_email")]
  111. [JsonPropertyName("org_email")]
  112. public string OrgEmail { get; set; }
  113. /// <summary>
  114. /// 备注
  115. /// </summary>
  116. [JsonProperty("remark")]
  117. [JsonPropertyName("remark")]
  118. public string Remark { get; set; }
  119. /// <summary>
  120. /// 国际电话区号
  121. /// </summary>
  122. [JsonProperty("state_code")]
  123. [JsonPropertyName("state_code")]
  124. public string StateCode { get; set; }
  125. /// <summary>
  126. /// 分机号
  127. /// </summary>
  128. [JsonProperty("telephone")]
  129. [JsonPropertyName("telephone")]
  130. public string Telephone { get; set; }
  131. /// <summary>
  132. /// 职位
  133. /// </summary>
  134. [JsonProperty("title")]
  135. [JsonPropertyName("title")]
  136. public string Title { get; set; }
  137. /// <summary>
  138. /// 用户在当前开发者企业账号范围内的唯一标识
  139. /// </summary>
  140. [JsonProperty("unionid")]
  141. [JsonPropertyName("unionid")]
  142. public string Unionid { get; set; }
  143. /// <summary>
  144. /// 用户的userId
  145. /// </summary>
  146. [JsonProperty("userid")]
  147. [JsonPropertyName("userid")]
  148. public string UserId { get; set; }
  149. /// <summary>
  150. /// 办公地点
  151. /// </summary>
  152. [JsonProperty("work_place")]
  153. [JsonPropertyName("work_place")]
  154. public string WorkPlace { get; set; }
  155. }