OapiDepartmentCreateRequest.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.department.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.10.10
  7. */
  8. class OapiDepartmentCreateRequest
  9. {
  10. /**
  11. * 是否创建一个关联此部门的企业群,默认为false
  12. **/
  13. private $createDeptGroup;
  14. /**
  15. * 是否隐藏部门, true表示隐藏, false表示显示
  16. **/
  17. private $deptHiding;
  18. /**
  19. * 已废弃
  20. **/
  21. private $deptPerimits;
  22. /**
  23. * 可以查看指定隐藏部门的其他部门列表,如果部门隐藏,则此值生效,取值为其他的部门id组成的的字符串,使用 | 符号进行分割。总数不能超过200。
  24. **/
  25. private $deptPermits;
  26. /**
  27. * 自定义部门id, 必须大于1且小于9223372036854775807
  28. **/
  29. private $id;
  30. /**
  31. * 部门名称。长度限制为1~64个字符。不允许包含字符‘-’‘,’以及‘,’
  32. **/
  33. private $name;
  34. /**
  35. * 在父部门中的次序值。order值小的排序靠前
  36. **/
  37. private $order;
  38. /**
  39. * 是否本部门的员工仅可见员工自己, 为true时,本部门员工默认只能看到员工自己
  40. **/
  41. private $outerDept;
  42. /**
  43. * 是否只能看到所在部门及下级部门通讯录
  44. **/
  45. private $outerDeptOnlySelf;
  46. /**
  47. * 本部门的员工仅可见员工自己为true时,可以配置额外可见部门,值为部门id组成的的字符串,使用|符号进行分割。总数不能超过200。
  48. **/
  49. private $outerPermitDepts;
  50. /**
  51. * 本部门的员工仅可见员工自己为true时,可以配置额外可见人员,值为userid组成的的字符串,使用|符号进行分割。总数不能超过200。
  52. **/
  53. private $outerPermitUsers;
  54. /**
  55. * 是否优先使用父部门的预算
  56. **/
  57. private $parentBalanceFirst;
  58. /**
  59. * 父部门id。根部门id为1
  60. **/
  61. private $parentid;
  62. /**
  63. * 是否共享预算
  64. **/
  65. private $shareBalance;
  66. /**
  67. * 部门标识字段,开发者可用该字段来唯一标识一个部门,并与钉钉外部通讯录里的部门做映射
  68. **/
  69. private $sourceIdentifier;
  70. /**
  71. * 已废弃
  72. **/
  73. private $userPerimits;
  74. /**
  75. * 可以查看指定隐藏部门的其他人员列表,如果部门隐藏,则此值生效,取值为其他的人员userid组成的的字符串,使用| 符号进行分割。总数不能超过200。
  76. **/
  77. private $userPermits;
  78. private $apiParas = array();
  79. public function setCreateDeptGroup($createDeptGroup)
  80. {
  81. $this->createDeptGroup = $createDeptGroup;
  82. $this->apiParas["createDeptGroup"] = $createDeptGroup;
  83. }
  84. public function getCreateDeptGroup()
  85. {
  86. return $this->createDeptGroup;
  87. }
  88. public function setDeptHiding($deptHiding)
  89. {
  90. $this->deptHiding = $deptHiding;
  91. $this->apiParas["deptHiding"] = $deptHiding;
  92. }
  93. public function getDeptHiding()
  94. {
  95. return $this->deptHiding;
  96. }
  97. public function setDeptPerimits($deptPerimits)
  98. {
  99. $this->deptPerimits = $deptPerimits;
  100. $this->apiParas["deptPerimits"] = $deptPerimits;
  101. }
  102. public function getDeptPerimits()
  103. {
  104. return $this->deptPerimits;
  105. }
  106. public function setDeptPermits($deptPermits)
  107. {
  108. $this->deptPermits = $deptPermits;
  109. $this->apiParas["deptPermits"] = $deptPermits;
  110. }
  111. public function getDeptPermits()
  112. {
  113. return $this->deptPermits;
  114. }
  115. public function setId($id)
  116. {
  117. $this->id = $id;
  118. $this->apiParas["id"] = $id;
  119. }
  120. public function getId()
  121. {
  122. return $this->id;
  123. }
  124. public function setName($name)
  125. {
  126. $this->name = $name;
  127. $this->apiParas["name"] = $name;
  128. }
  129. public function getName()
  130. {
  131. return $this->name;
  132. }
  133. public function setOrder($order)
  134. {
  135. $this->order = $order;
  136. $this->apiParas["order"] = $order;
  137. }
  138. public function getOrder()
  139. {
  140. return $this->order;
  141. }
  142. public function setOuterDept($outerDept)
  143. {
  144. $this->outerDept = $outerDept;
  145. $this->apiParas["outerDept"] = $outerDept;
  146. }
  147. public function getOuterDept()
  148. {
  149. return $this->outerDept;
  150. }
  151. public function setOuterDeptOnlySelf($outerDeptOnlySelf)
  152. {
  153. $this->outerDeptOnlySelf = $outerDeptOnlySelf;
  154. $this->apiParas["outerDeptOnlySelf"] = $outerDeptOnlySelf;
  155. }
  156. public function getOuterDeptOnlySelf()
  157. {
  158. return $this->outerDeptOnlySelf;
  159. }
  160. public function setOuterPermitDepts($outerPermitDepts)
  161. {
  162. $this->outerPermitDepts = $outerPermitDepts;
  163. $this->apiParas["outerPermitDepts"] = $outerPermitDepts;
  164. }
  165. public function getOuterPermitDepts()
  166. {
  167. return $this->outerPermitDepts;
  168. }
  169. public function setOuterPermitUsers($outerPermitUsers)
  170. {
  171. $this->outerPermitUsers = $outerPermitUsers;
  172. $this->apiParas["outerPermitUsers"] = $outerPermitUsers;
  173. }
  174. public function getOuterPermitUsers()
  175. {
  176. return $this->outerPermitUsers;
  177. }
  178. public function setParentBalanceFirst($parentBalanceFirst)
  179. {
  180. $this->parentBalanceFirst = $parentBalanceFirst;
  181. $this->apiParas["parentBalanceFirst"] = $parentBalanceFirst;
  182. }
  183. public function getParentBalanceFirst()
  184. {
  185. return $this->parentBalanceFirst;
  186. }
  187. public function setParentid($parentid)
  188. {
  189. $this->parentid = $parentid;
  190. $this->apiParas["parentid"] = $parentid;
  191. }
  192. public function getParentid()
  193. {
  194. return $this->parentid;
  195. }
  196. public function setShareBalance($shareBalance)
  197. {
  198. $this->shareBalance = $shareBalance;
  199. $this->apiParas["shareBalance"] = $shareBalance;
  200. }
  201. public function getShareBalance()
  202. {
  203. return $this->shareBalance;
  204. }
  205. public function setSourceIdentifier($sourceIdentifier)
  206. {
  207. $this->sourceIdentifier = $sourceIdentifier;
  208. $this->apiParas["sourceIdentifier"] = $sourceIdentifier;
  209. }
  210. public function getSourceIdentifier()
  211. {
  212. return $this->sourceIdentifier;
  213. }
  214. public function setUserPerimits($userPerimits)
  215. {
  216. $this->userPerimits = $userPerimits;
  217. $this->apiParas["userPerimits"] = $userPerimits;
  218. }
  219. public function getUserPerimits()
  220. {
  221. return $this->userPerimits;
  222. }
  223. public function setUserPermits($userPermits)
  224. {
  225. $this->userPermits = $userPermits;
  226. $this->apiParas["userPermits"] = $userPermits;
  227. }
  228. public function getUserPermits()
  229. {
  230. return $this->userPermits;
  231. }
  232. public function getApiMethodName()
  233. {
  234. return "dingtalk.oapi.department.create";
  235. }
  236. public function getApiParas()
  237. {
  238. return $this->apiParas;
  239. }
  240. public function check()
  241. {
  242. }
  243. public function putOtherTextParam($key, $value) {
  244. $this->apiParas[$key] = $value;
  245. $this->$key = $value;
  246. }
  247. }