OapiUserUpdateRequest.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.user.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.10.23
  7. */
  8. class OapiUserUpdateRequest
  9. {
  10. /**
  11. * 部门列表
  12. **/
  13. private $department;
  14. /**
  15. * 邮箱
  16. **/
  17. private $email;
  18. /**
  19. * 扩展属性
  20. **/
  21. private $extattr;
  22. /**
  23. * 入职时间
  24. **/
  25. private $hiredDate;
  26. /**
  27. * 是否号码隐藏
  28. **/
  29. private $isHide;
  30. /**
  31. * 是否高管模式
  32. **/
  33. private $isSenior;
  34. /**
  35. * 工号
  36. **/
  37. private $jobnumber;
  38. /**
  39. * 通讯录语言(默认zh_CN另外支持en_US)
  40. **/
  41. private $lang;
  42. /**
  43. * 主管
  44. **/
  45. private $managerUserid;
  46. /**
  47. * 手机号
  48. **/
  49. private $mobile;
  50. /**
  51. * 名字
  52. **/
  53. private $name;
  54. /**
  55. * 实际是Map的序列化字符串
  56. **/
  57. private $orderInDepts;
  58. /**
  59. * 公司邮箱
  60. **/
  61. private $orgEmail;
  62. /**
  63. * 职位
  64. **/
  65. private $position;
  66. /**
  67. * 实际是Map的序列化字符串
  68. **/
  69. private $positionInDepts;
  70. /**
  71. * 备注
  72. **/
  73. private $remark;
  74. /**
  75. * 分机号,长度为0~50个字符
  76. **/
  77. private $tel;
  78. /**
  79. * 用户id
  80. **/
  81. private $userid;
  82. /**
  83. * 工作地点
  84. **/
  85. private $workPlace;
  86. private $apiParas = array();
  87. public function setDepartment($department)
  88. {
  89. $this->department = $department;
  90. $this->apiParas["department"] = $department;
  91. }
  92. public function getDepartment()
  93. {
  94. return $this->department;
  95. }
  96. public function setEmail($email)
  97. {
  98. $this->email = $email;
  99. $this->apiParas["email"] = $email;
  100. }
  101. public function getEmail()
  102. {
  103. return $this->email;
  104. }
  105. public function setExtattr($extattr)
  106. {
  107. $this->extattr = $extattr;
  108. $this->apiParas["extattr"] = $extattr;
  109. }
  110. public function getExtattr()
  111. {
  112. return $this->extattr;
  113. }
  114. public function setHiredDate($hiredDate)
  115. {
  116. $this->hiredDate = $hiredDate;
  117. $this->apiParas["hiredDate"] = $hiredDate;
  118. }
  119. public function getHiredDate()
  120. {
  121. return $this->hiredDate;
  122. }
  123. public function setIsHide($isHide)
  124. {
  125. $this->isHide = $isHide;
  126. $this->apiParas["isHide"] = $isHide;
  127. }
  128. public function getIsHide()
  129. {
  130. return $this->isHide;
  131. }
  132. public function setIsSenior($isSenior)
  133. {
  134. $this->isSenior = $isSenior;
  135. $this->apiParas["isSenior"] = $isSenior;
  136. }
  137. public function getIsSenior()
  138. {
  139. return $this->isSenior;
  140. }
  141. public function setJobnumber($jobnumber)
  142. {
  143. $this->jobnumber = $jobnumber;
  144. $this->apiParas["jobnumber"] = $jobnumber;
  145. }
  146. public function getJobnumber()
  147. {
  148. return $this->jobnumber;
  149. }
  150. public function setLang($lang)
  151. {
  152. $this->lang = $lang;
  153. $this->apiParas["lang"] = $lang;
  154. }
  155. public function getLang()
  156. {
  157. return $this->lang;
  158. }
  159. public function setManagerUserid($managerUserid)
  160. {
  161. $this->managerUserid = $managerUserid;
  162. $this->apiParas["managerUserid"] = $managerUserid;
  163. }
  164. public function getManagerUserid()
  165. {
  166. return $this->managerUserid;
  167. }
  168. public function setMobile($mobile)
  169. {
  170. $this->mobile = $mobile;
  171. $this->apiParas["mobile"] = $mobile;
  172. }
  173. public function getMobile()
  174. {
  175. return $this->mobile;
  176. }
  177. public function setName($name)
  178. {
  179. $this->name = $name;
  180. $this->apiParas["name"] = $name;
  181. }
  182. public function getName()
  183. {
  184. return $this->name;
  185. }
  186. public function setOrderInDepts($orderInDepts)
  187. {
  188. $this->orderInDepts = $orderInDepts;
  189. $this->apiParas["orderInDepts"] = $orderInDepts;
  190. }
  191. public function getOrderInDepts()
  192. {
  193. return $this->orderInDepts;
  194. }
  195. public function setOrgEmail($orgEmail)
  196. {
  197. $this->orgEmail = $orgEmail;
  198. $this->apiParas["orgEmail"] = $orgEmail;
  199. }
  200. public function getOrgEmail()
  201. {
  202. return $this->orgEmail;
  203. }
  204. public function setPosition($position)
  205. {
  206. $this->position = $position;
  207. $this->apiParas["position"] = $position;
  208. }
  209. public function getPosition()
  210. {
  211. return $this->position;
  212. }
  213. public function setPositionInDepts($positionInDepts)
  214. {
  215. $this->positionInDepts = $positionInDepts;
  216. $this->apiParas["positionInDepts"] = $positionInDepts;
  217. }
  218. public function getPositionInDepts()
  219. {
  220. return $this->positionInDepts;
  221. }
  222. public function setRemark($remark)
  223. {
  224. $this->remark = $remark;
  225. $this->apiParas["remark"] = $remark;
  226. }
  227. public function getRemark()
  228. {
  229. return $this->remark;
  230. }
  231. public function setTel($tel)
  232. {
  233. $this->tel = $tel;
  234. $this->apiParas["tel"] = $tel;
  235. }
  236. public function getTel()
  237. {
  238. return $this->tel;
  239. }
  240. public function setUserid($userid)
  241. {
  242. $this->userid = $userid;
  243. $this->apiParas["userid"] = $userid;
  244. }
  245. public function getUserid()
  246. {
  247. return $this->userid;
  248. }
  249. public function setWorkPlace($workPlace)
  250. {
  251. $this->workPlace = $workPlace;
  252. $this->apiParas["workPlace"] = $workPlace;
  253. }
  254. public function getWorkPlace()
  255. {
  256. return $this->workPlace;
  257. }
  258. public function getApiMethodName()
  259. {
  260. return "dingtalk.oapi.user.update";
  261. }
  262. public function getApiParas()
  263. {
  264. return $this->apiParas;
  265. }
  266. public function check()
  267. {
  268. RequestCheckUtil::checkMaxListSize($this->department,20,"department");
  269. }
  270. public function putOtherTextParam($key, $value) {
  271. $this->apiParas[$key] = $value;
  272. $this->$key = $value;
  273. }
  274. }