123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.department.create request
- *
- * @author auto create
- * @since 1.0, 2020.10.10
- */
- class OapiDepartmentCreateRequest
- {
- /**
- * 是否创建一个关联此部门的企业群,默认为false
- **/
- private $createDeptGroup;
-
- /**
- * 是否隐藏部门, true表示隐藏, false表示显示
- **/
- private $deptHiding;
-
- /**
- * 已废弃
- **/
- private $deptPerimits;
-
- /**
- * 可以查看指定隐藏部门的其他部门列表,如果部门隐藏,则此值生效,取值为其他的部门id组成的的字符串,使用 | 符号进行分割。总数不能超过200。
- **/
- private $deptPermits;
-
- /**
- * 自定义部门id, 必须大于1且小于9223372036854775807
- **/
- private $id;
-
- /**
- * 部门名称。长度限制为1~64个字符。不允许包含字符‘-’‘,’以及‘,’
- **/
- private $name;
-
- /**
- * 在父部门中的次序值。order值小的排序靠前
- **/
- private $order;
-
- /**
- * 是否本部门的员工仅可见员工自己, 为true时,本部门员工默认只能看到员工自己
- **/
- private $outerDept;
-
- /**
- * 是否只能看到所在部门及下级部门通讯录
- **/
- private $outerDeptOnlySelf;
-
- /**
- * 本部门的员工仅可见员工自己为true时,可以配置额外可见部门,值为部门id组成的的字符串,使用|符号进行分割。总数不能超过200。
- **/
- private $outerPermitDepts;
-
- /**
- * 本部门的员工仅可见员工自己为true时,可以配置额外可见人员,值为userid组成的的字符串,使用|符号进行分割。总数不能超过200。
- **/
- private $outerPermitUsers;
-
- /**
- * 是否优先使用父部门的预算
- **/
- private $parentBalanceFirst;
-
- /**
- * 父部门id。根部门id为1
- **/
- private $parentid;
-
- /**
- * 是否共享预算
- **/
- private $shareBalance;
-
- /**
- * 部门标识字段,开发者可用该字段来唯一标识一个部门,并与钉钉外部通讯录里的部门做映射
- **/
- private $sourceIdentifier;
-
- /**
- * 已废弃
- **/
- private $userPerimits;
-
- /**
- * 可以查看指定隐藏部门的其他人员列表,如果部门隐藏,则此值生效,取值为其他的人员userid组成的的字符串,使用| 符号进行分割。总数不能超过200。
- **/
- private $userPermits;
-
- private $apiParas = array();
-
- public function setCreateDeptGroup($createDeptGroup)
- {
- $this->createDeptGroup = $createDeptGroup;
- $this->apiParas["createDeptGroup"] = $createDeptGroup;
- }
- public function getCreateDeptGroup()
- {
- return $this->createDeptGroup;
- }
- public function setDeptHiding($deptHiding)
- {
- $this->deptHiding = $deptHiding;
- $this->apiParas["deptHiding"] = $deptHiding;
- }
- public function getDeptHiding()
- {
- return $this->deptHiding;
- }
- public function setDeptPerimits($deptPerimits)
- {
- $this->deptPerimits = $deptPerimits;
- $this->apiParas["deptPerimits"] = $deptPerimits;
- }
- public function getDeptPerimits()
- {
- return $this->deptPerimits;
- }
- public function setDeptPermits($deptPermits)
- {
- $this->deptPermits = $deptPermits;
- $this->apiParas["deptPermits"] = $deptPermits;
- }
- public function getDeptPermits()
- {
- return $this->deptPermits;
- }
- public function setId($id)
- {
- $this->id = $id;
- $this->apiParas["id"] = $id;
- }
- public function getId()
- {
- return $this->id;
- }
- public function setName($name)
- {
- $this->name = $name;
- $this->apiParas["name"] = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setOrder($order)
- {
- $this->order = $order;
- $this->apiParas["order"] = $order;
- }
- public function getOrder()
- {
- return $this->order;
- }
- public function setOuterDept($outerDept)
- {
- $this->outerDept = $outerDept;
- $this->apiParas["outerDept"] = $outerDept;
- }
- public function getOuterDept()
- {
- return $this->outerDept;
- }
- public function setOuterDeptOnlySelf($outerDeptOnlySelf)
- {
- $this->outerDeptOnlySelf = $outerDeptOnlySelf;
- $this->apiParas["outerDeptOnlySelf"] = $outerDeptOnlySelf;
- }
- public function getOuterDeptOnlySelf()
- {
- return $this->outerDeptOnlySelf;
- }
- public function setOuterPermitDepts($outerPermitDepts)
- {
- $this->outerPermitDepts = $outerPermitDepts;
- $this->apiParas["outerPermitDepts"] = $outerPermitDepts;
- }
- public function getOuterPermitDepts()
- {
- return $this->outerPermitDepts;
- }
- public function setOuterPermitUsers($outerPermitUsers)
- {
- $this->outerPermitUsers = $outerPermitUsers;
- $this->apiParas["outerPermitUsers"] = $outerPermitUsers;
- }
- public function getOuterPermitUsers()
- {
- return $this->outerPermitUsers;
- }
- public function setParentBalanceFirst($parentBalanceFirst)
- {
- $this->parentBalanceFirst = $parentBalanceFirst;
- $this->apiParas["parentBalanceFirst"] = $parentBalanceFirst;
- }
- public function getParentBalanceFirst()
- {
- return $this->parentBalanceFirst;
- }
- public function setParentid($parentid)
- {
- $this->parentid = $parentid;
- $this->apiParas["parentid"] = $parentid;
- }
- public function getParentid()
- {
- return $this->parentid;
- }
- public function setShareBalance($shareBalance)
- {
- $this->shareBalance = $shareBalance;
- $this->apiParas["shareBalance"] = $shareBalance;
- }
- public function getShareBalance()
- {
- return $this->shareBalance;
- }
- public function setSourceIdentifier($sourceIdentifier)
- {
- $this->sourceIdentifier = $sourceIdentifier;
- $this->apiParas["sourceIdentifier"] = $sourceIdentifier;
- }
- public function getSourceIdentifier()
- {
- return $this->sourceIdentifier;
- }
- public function setUserPerimits($userPerimits)
- {
- $this->userPerimits = $userPerimits;
- $this->apiParas["userPerimits"] = $userPerimits;
- }
- public function getUserPerimits()
- {
- return $this->userPerimits;
- }
- public function setUserPermits($userPermits)
- {
- $this->userPermits = $userPermits;
- $this->apiParas["userPermits"] = $userPermits;
- }
- public function getUserPermits()
- {
- return $this->userPermits;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.department.create";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|