OapiDepartmentUpdateRequest.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.department.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.05.18
  7. */
  8. class OapiDepartmentUpdateRequest
  9. {
  10. /**
  11. * 如果有新人加入部门是否会自动加入部门群
  12. **/
  13. private $autoAddUser;
  14. /**
  15. * 是否创建一个关联此部门的企业群
  16. **/
  17. private $createDeptGroup;
  18. /**
  19. * 是否隐藏部门, true表示隐藏, false表示显示
  20. **/
  21. private $deptHiding;
  22. /**
  23. * 部门的主管列表,取值为由主管的userid组成的字符串,不同的userid使用’| 符号进行分割
  24. **/
  25. private $deptManagerUseridList;
  26. /**
  27. * 可以查看指定隐藏部门的其他部门列表,如果部门隐藏,则此值生效,取值为其他的部门id组成的的字符串,使用 | 符号进行分割。总数不能超过200。
  28. **/
  29. private $deptPerimits;
  30. /**
  31. * 可以查看指定隐藏部门的其他部门列表,如果部门隐藏,则此值生效,取值为其他的部门id组成的的字符串,使用 | 符号进行分割。总数不能超过200。
  32. **/
  33. private $deptPermits;
  34. /**
  35. * 部门群是否包含隐藏部门
  36. **/
  37. private $groupContainHiddenDept;
  38. /**
  39. * 部门群是否包含外包部门
  40. **/
  41. private $groupContainOuterDept;
  42. /**
  43. * 本门群是否包含子部门
  44. **/
  45. private $groupContainSubDept;
  46. /**
  47. * 部门id
  48. **/
  49. private $id;
  50. /**
  51. * 通讯录语言(默认zh_CN另外支持en_US)
  52. **/
  53. private $lang;
  54. /**
  55. * 部门名称。长度限制为1~64个字符。不允许包含字符‘-’‘,’以及‘,’。
  56. **/
  57. private $name;
  58. /**
  59. * 在父部门中的次序值。order值小的排序靠前
  60. **/
  61. private $order;
  62. /**
  63. * 企业群群主
  64. **/
  65. private $orgDeptOwner;
  66. /**
  67. * 是否本部门的员工仅可见员工自己, 为true时,本部门员工默认只能看到员工自己
  68. **/
  69. private $outerDept;
  70. /**
  71. * 是否只能看到所在部门及下级部门通讯录
  72. **/
  73. private $outerDeptOnlySelf;
  74. /**
  75. * 本部门的员工仅可见员工自己为true时,可以配置额外可见部门,值为部门id组成的的字符串,使用|符号进行分割。总数不能超过200。
  76. **/
  77. private $outerPermitDepts;
  78. /**
  79. * 本部门的员工仅可见员工自己为true时,可以配置额外可见人员,值为userid组成的的字符串,使用|符号进行分割。总数不能超过200。
  80. **/
  81. private $outerPermitUsers;
  82. /**
  83. * 父部门id。根部门id为1
  84. **/
  85. private $parentid;
  86. /**
  87. * 部门标识字段,开发者可用该字段来唯一标识一个部门,并与钉钉外部通讯录里的部门做映射
  88. **/
  89. private $sourceIdentifier;
  90. /**
  91. * 可以查看指定隐藏部门的其他人员列表,如果部门隐藏,则此值生效,取值为其他的人员userid组成的的字符串,使用| 符号进行分割。总数不能超过200。
  92. **/
  93. private $userPerimits;
  94. /**
  95. * 可以查看指定隐藏部门的其他人员列表,如果部门隐藏,则此值生效,取值为其他的人员userid组成的的字符串,使用| 符号进行分割。总数不能超过200。
  96. **/
  97. private $userPermits;
  98. private $apiParas = array();
  99. public function setAutoAddUser($autoAddUser)
  100. {
  101. $this->autoAddUser = $autoAddUser;
  102. $this->apiParas["autoAddUser"] = $autoAddUser;
  103. }
  104. public function getAutoAddUser()
  105. {
  106. return $this->autoAddUser;
  107. }
  108. public function setCreateDeptGroup($createDeptGroup)
  109. {
  110. $this->createDeptGroup = $createDeptGroup;
  111. $this->apiParas["createDeptGroup"] = $createDeptGroup;
  112. }
  113. public function getCreateDeptGroup()
  114. {
  115. return $this->createDeptGroup;
  116. }
  117. public function setDeptHiding($deptHiding)
  118. {
  119. $this->deptHiding = $deptHiding;
  120. $this->apiParas["deptHiding"] = $deptHiding;
  121. }
  122. public function getDeptHiding()
  123. {
  124. return $this->deptHiding;
  125. }
  126. public function setDeptManagerUseridList($deptManagerUseridList)
  127. {
  128. $this->deptManagerUseridList = $deptManagerUseridList;
  129. $this->apiParas["deptManagerUseridList"] = $deptManagerUseridList;
  130. }
  131. public function getDeptManagerUseridList()
  132. {
  133. return $this->deptManagerUseridList;
  134. }
  135. public function setDeptPerimits($deptPerimits)
  136. {
  137. $this->deptPerimits = $deptPerimits;
  138. $this->apiParas["deptPerimits"] = $deptPerimits;
  139. }
  140. public function getDeptPerimits()
  141. {
  142. return $this->deptPerimits;
  143. }
  144. public function setDeptPermits($deptPermits)
  145. {
  146. $this->deptPermits = $deptPermits;
  147. $this->apiParas["deptPermits"] = $deptPermits;
  148. }
  149. public function getDeptPermits()
  150. {
  151. return $this->deptPermits;
  152. }
  153. public function setGroupContainHiddenDept($groupContainHiddenDept)
  154. {
  155. $this->groupContainHiddenDept = $groupContainHiddenDept;
  156. $this->apiParas["groupContainHiddenDept"] = $groupContainHiddenDept;
  157. }
  158. public function getGroupContainHiddenDept()
  159. {
  160. return $this->groupContainHiddenDept;
  161. }
  162. public function setGroupContainOuterDept($groupContainOuterDept)
  163. {
  164. $this->groupContainOuterDept = $groupContainOuterDept;
  165. $this->apiParas["groupContainOuterDept"] = $groupContainOuterDept;
  166. }
  167. public function getGroupContainOuterDept()
  168. {
  169. return $this->groupContainOuterDept;
  170. }
  171. public function setGroupContainSubDept($groupContainSubDept)
  172. {
  173. $this->groupContainSubDept = $groupContainSubDept;
  174. $this->apiParas["groupContainSubDept"] = $groupContainSubDept;
  175. }
  176. public function getGroupContainSubDept()
  177. {
  178. return $this->groupContainSubDept;
  179. }
  180. public function setId($id)
  181. {
  182. $this->id = $id;
  183. $this->apiParas["id"] = $id;
  184. }
  185. public function getId()
  186. {
  187. return $this->id;
  188. }
  189. public function setLang($lang)
  190. {
  191. $this->lang = $lang;
  192. $this->apiParas["lang"] = $lang;
  193. }
  194. public function getLang()
  195. {
  196. return $this->lang;
  197. }
  198. public function setName($name)
  199. {
  200. $this->name = $name;
  201. $this->apiParas["name"] = $name;
  202. }
  203. public function getName()
  204. {
  205. return $this->name;
  206. }
  207. public function setOrder($order)
  208. {
  209. $this->order = $order;
  210. $this->apiParas["order"] = $order;
  211. }
  212. public function getOrder()
  213. {
  214. return $this->order;
  215. }
  216. public function setOrgDeptOwner($orgDeptOwner)
  217. {
  218. $this->orgDeptOwner = $orgDeptOwner;
  219. $this->apiParas["orgDeptOwner"] = $orgDeptOwner;
  220. }
  221. public function getOrgDeptOwner()
  222. {
  223. return $this->orgDeptOwner;
  224. }
  225. public function setOuterDept($outerDept)
  226. {
  227. $this->outerDept = $outerDept;
  228. $this->apiParas["outerDept"] = $outerDept;
  229. }
  230. public function getOuterDept()
  231. {
  232. return $this->outerDept;
  233. }
  234. public function setOuterDeptOnlySelf($outerDeptOnlySelf)
  235. {
  236. $this->outerDeptOnlySelf = $outerDeptOnlySelf;
  237. $this->apiParas["outerDeptOnlySelf"] = $outerDeptOnlySelf;
  238. }
  239. public function getOuterDeptOnlySelf()
  240. {
  241. return $this->outerDeptOnlySelf;
  242. }
  243. public function setOuterPermitDepts($outerPermitDepts)
  244. {
  245. $this->outerPermitDepts = $outerPermitDepts;
  246. $this->apiParas["outerPermitDepts"] = $outerPermitDepts;
  247. }
  248. public function getOuterPermitDepts()
  249. {
  250. return $this->outerPermitDepts;
  251. }
  252. public function setOuterPermitUsers($outerPermitUsers)
  253. {
  254. $this->outerPermitUsers = $outerPermitUsers;
  255. $this->apiParas["outerPermitUsers"] = $outerPermitUsers;
  256. }
  257. public function getOuterPermitUsers()
  258. {
  259. return $this->outerPermitUsers;
  260. }
  261. public function setParentid($parentid)
  262. {
  263. $this->parentid = $parentid;
  264. $this->apiParas["parentid"] = $parentid;
  265. }
  266. public function getParentid()
  267. {
  268. return $this->parentid;
  269. }
  270. public function setSourceIdentifier($sourceIdentifier)
  271. {
  272. $this->sourceIdentifier = $sourceIdentifier;
  273. $this->apiParas["sourceIdentifier"] = $sourceIdentifier;
  274. }
  275. public function getSourceIdentifier()
  276. {
  277. return $this->sourceIdentifier;
  278. }
  279. public function setUserPerimits($userPerimits)
  280. {
  281. $this->userPerimits = $userPerimits;
  282. $this->apiParas["userPerimits"] = $userPerimits;
  283. }
  284. public function getUserPerimits()
  285. {
  286. return $this->userPerimits;
  287. }
  288. public function setUserPermits($userPermits)
  289. {
  290. $this->userPermits = $userPermits;
  291. $this->apiParas["userPermits"] = $userPermits;
  292. }
  293. public function getUserPermits()
  294. {
  295. return $this->userPermits;
  296. }
  297. public function getApiMethodName()
  298. {
  299. return "dingtalk.oapi.department.update";
  300. }
  301. public function getApiParas()
  302. {
  303. return $this->apiParas;
  304. }
  305. public function check()
  306. {
  307. }
  308. public function putOtherTextParam($key, $value) {
  309. $this->apiParas[$key] = $value;
  310. $this->$key = $value;
  311. }
  312. }