contactName = $contactName; $this->apiParas["contact_name"] = $contactName; } public function getContactName() { return $this->contactName; } public function setContactPhone($contactPhone) { $this->contactPhone = $contactPhone; $this->apiParas["contact_phone"] = $contactPhone; } public function getContactPhone() { return $this->contactPhone; } public function setContactPositionList($contactPositionList) { $this->contactPositionList = $contactPositionList; $this->apiParas["contact_position_list"] = $contactPositionList; } public function getContactPositionList() { return $this->contactPositionList; } public function setCreatorUserid($creatorUserid) { $this->creatorUserid = $creatorUserid; $this->apiParas["creator_userid"] = $creatorUserid; } public function getCreatorUserid() { return $this->creatorUserid; } public function setCustomerInstanceId($customerInstanceId) { $this->customerInstanceId = $customerInstanceId; $this->apiParas["customer_instance_id"] = $customerInstanceId; } public function getCustomerInstanceId() { return $this->customerInstanceId; } public function setProviderCorpid($providerCorpid) { $this->providerCorpid = $providerCorpid; $this->apiParas["provider_corpid"] = $providerCorpid; } public function getProviderCorpid() { return $this->providerCorpid; } public function getApiMethodName() { return "dingtalk.oapi.crm.contact.create"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->contactName,"contactName"); RequestCheckUtil::checkMaxLength($this->contactName,20,"contactName"); RequestCheckUtil::checkNotNull($this->contactPhone,"contactPhone"); RequestCheckUtil::checkMaxLength($this->contactPhone,15,"contactPhone"); RequestCheckUtil::checkMaxListSize($this->contactPositionList,999,"contactPositionList"); RequestCheckUtil::checkNotNull($this->creatorUserid,"creatorUserid"); RequestCheckUtil::checkNotNull($this->customerInstanceId,"customerInstanceId"); RequestCheckUtil::checkMaxLength($this->customerInstanceId,50,"customerInstanceId"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }