123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.user.update request
- *
- * @author auto create
- * @since 1.0, 2020.10.23
- */
- class OapiUserUpdateRequest
- {
- /**
- * 部门列表
- **/
- private $department;
-
- /**
- * 邮箱
- **/
- private $email;
-
- /**
- * 扩展属性
- **/
- private $extattr;
-
- /**
- * 入职时间
- **/
- private $hiredDate;
-
- /**
- * 是否号码隐藏
- **/
- private $isHide;
-
- /**
- * 是否高管模式
- **/
- private $isSenior;
-
- /**
- * 工号
- **/
- private $jobnumber;
-
- /**
- * 通讯录语言(默认zh_CN另外支持en_US)
- **/
- private $lang;
-
- /**
- * 主管
- **/
- private $managerUserid;
-
- /**
- * 手机号
- **/
- private $mobile;
-
- /**
- * 名字
- **/
- private $name;
-
- /**
- * 实际是Map的序列化字符串
- **/
- private $orderInDepts;
-
- /**
- * 公司邮箱
- **/
- private $orgEmail;
-
- /**
- * 职位
- **/
- private $position;
-
- /**
- * 实际是Map的序列化字符串
- **/
- private $positionInDepts;
-
- /**
- * 备注
- **/
- private $remark;
-
- /**
- * 分机号,长度为0~50个字符
- **/
- private $tel;
-
- /**
- * 用户id
- **/
- private $userid;
-
- /**
- * 工作地点
- **/
- private $workPlace;
-
- private $apiParas = array();
-
- public function setDepartment($department)
- {
- $this->department = $department;
- $this->apiParas["department"] = $department;
- }
- public function getDepartment()
- {
- return $this->department;
- }
- public function setEmail($email)
- {
- $this->email = $email;
- $this->apiParas["email"] = $email;
- }
- public function getEmail()
- {
- return $this->email;
- }
- public function setExtattr($extattr)
- {
- $this->extattr = $extattr;
- $this->apiParas["extattr"] = $extattr;
- }
- public function getExtattr()
- {
- return $this->extattr;
- }
- public function setHiredDate($hiredDate)
- {
- $this->hiredDate = $hiredDate;
- $this->apiParas["hiredDate"] = $hiredDate;
- }
- public function getHiredDate()
- {
- return $this->hiredDate;
- }
- public function setIsHide($isHide)
- {
- $this->isHide = $isHide;
- $this->apiParas["isHide"] = $isHide;
- }
- public function getIsHide()
- {
- return $this->isHide;
- }
- public function setIsSenior($isSenior)
- {
- $this->isSenior = $isSenior;
- $this->apiParas["isSenior"] = $isSenior;
- }
- public function getIsSenior()
- {
- return $this->isSenior;
- }
- public function setJobnumber($jobnumber)
- {
- $this->jobnumber = $jobnumber;
- $this->apiParas["jobnumber"] = $jobnumber;
- }
- public function getJobnumber()
- {
- return $this->jobnumber;
- }
- public function setLang($lang)
- {
- $this->lang = $lang;
- $this->apiParas["lang"] = $lang;
- }
- public function getLang()
- {
- return $this->lang;
- }
- public function setManagerUserid($managerUserid)
- {
- $this->managerUserid = $managerUserid;
- $this->apiParas["managerUserid"] = $managerUserid;
- }
- public function getManagerUserid()
- {
- return $this->managerUserid;
- }
- public function setMobile($mobile)
- {
- $this->mobile = $mobile;
- $this->apiParas["mobile"] = $mobile;
- }
- public function getMobile()
- {
- return $this->mobile;
- }
- public function setName($name)
- {
- $this->name = $name;
- $this->apiParas["name"] = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setOrderInDepts($orderInDepts)
- {
- $this->orderInDepts = $orderInDepts;
- $this->apiParas["orderInDepts"] = $orderInDepts;
- }
- public function getOrderInDepts()
- {
- return $this->orderInDepts;
- }
- public function setOrgEmail($orgEmail)
- {
- $this->orgEmail = $orgEmail;
- $this->apiParas["orgEmail"] = $orgEmail;
- }
- public function getOrgEmail()
- {
- return $this->orgEmail;
- }
- public function setPosition($position)
- {
- $this->position = $position;
- $this->apiParas["position"] = $position;
- }
- public function getPosition()
- {
- return $this->position;
- }
- public function setPositionInDepts($positionInDepts)
- {
- $this->positionInDepts = $positionInDepts;
- $this->apiParas["positionInDepts"] = $positionInDepts;
- }
- public function getPositionInDepts()
- {
- return $this->positionInDepts;
- }
- public function setRemark($remark)
- {
- $this->remark = $remark;
- $this->apiParas["remark"] = $remark;
- }
- public function getRemark()
- {
- return $this->remark;
- }
- public function setTel($tel)
- {
- $this->tel = $tel;
- $this->apiParas["tel"] = $tel;
- }
- public function getTel()
- {
- return $this->tel;
- }
- public function setUserid($userid)
- {
- $this->userid = $userid;
- $this->apiParas["userid"] = $userid;
- }
- public function getUserid()
- {
- return $this->userid;
- }
- public function setWorkPlace($workPlace)
- {
- $this->workPlace = $workPlace;
- $this->apiParas["workPlace"] = $workPlace;
- }
- public function getWorkPlace()
- {
- return $this->workPlace;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.user.update";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkMaxListSize($this->department,20,"department");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|