chatIdList = $chatIdList; $this->apiParas["chat_id_list"] = $chatIdList; } public function getChatIdList() { return $this->chatIdList; } public function setMsg($msg) { $this->msg = $msg; $this->apiParas["msg"] = $msg; } public function getMsg() { return $this->msg; } public function setToAllUser($toAllUser) { $this->toAllUser = $toAllUser; $this->apiParas["to_all_user"] = $toAllUser; } public function getToAllUser() { return $this->toAllUser; } public function setUserIdList($userIdList) { $this->userIdList = $userIdList; $this->apiParas["user_id_list"] = $userIdList; } public function getUserIdList() { return $this->userIdList; } public function getApiMethodName() { return "dingtalk.oapi.smartbot.msg.push"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkMaxListSize($this->chatIdList,500,"chatIdList"); RequestCheckUtil::checkMaxListSize($this->userIdList,5000,"userIdList"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }