chatbotId = $chatbotId; $this->apiParas["chatbot_id"] = $chatbotId; } public function getChatbotId() { return $this->chatbotId; } public function setMsgKey($msgKey) { $this->msgKey = $msgKey; $this->apiParas["msg_key"] = $msgKey; } public function getMsgKey() { return $this->msgKey; } public function setMsgParam($msgParam) { $this->msgParam = $msgParam; $this->apiParas["msg_param"] = $msgParam; } public function getMsgParam() { return $this->msgParam; } public function setStaffId($staffId) { $this->staffId = $staffId; $this->apiParas["staff_id"] = $staffId; } public function getStaffId() { return $this->staffId; } public function getApiMethodName() { return "dingtalk.oapi.robot.message.sendoto"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->chatbotId,"chatbotId"); RequestCheckUtil::checkNotNull($this->msgKey,"msgKey"); RequestCheckUtil::checkNotNull($this->msgParam,"msgParam"); RequestCheckUtil::checkNotNull($this->staffId,"staffId"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }