chatid = $chatid; $this->apiParas["chatid"] = $chatid; } public function getChatid() { return $this->chatid; } public function setIsProhibit($isProhibit) { $this->isProhibit = $isProhibit; $this->apiParas["is_prohibit"] = $isProhibit; } public function getIsProhibit() { return $this->isProhibit; } public function getApiMethodName() { return "dingtalk.oapi.chat.member.friendswitch.update"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->chatid,"chatid"); RequestCheckUtil::checkNotNull($this->isProhibit,"isProhibit"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }