actionUrl = $actionUrl; $this->apiParas["action_url"] = $actionUrl; } public function getActionUrl() { return $this->actionUrl; } public function setContent($content) { $this->content = $content; $this->apiParas["content"] = $content; } public function getContent() { return $this->content; } public function setPicUrl($picUrl) { $this->picUrl = $picUrl; $this->apiParas["pic_url"] = $picUrl; } public function getPicUrl() { return $this->picUrl; } public function setRecieverUserids($recieverUserids) { $this->recieverUserids = $recieverUserids; $this->apiParas["reciever_userids"] = $recieverUserids; } public function getRecieverUserids() { return $this->recieverUserids; } public function setStyle($style) { $this->style = $style; $this->apiParas["style"] = $style; } public function getStyle() { return $this->style; } public function setTitle($title) { $this->title = $title; $this->apiParas["title"] = $title; } public function getTitle() { return $this->title; } public function getApiMethodName() { return "dingtalk.oapi.workspace.project.assistant.send"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->actionUrl,"actionUrl"); RequestCheckUtil::checkNotNull($this->recieverUserids,"recieverUserids"); RequestCheckUtil::checkMaxListSize($this->recieverUserids,999,"recieverUserids"); RequestCheckUtil::checkNotNull($this->style,"style"); RequestCheckUtil::checkNotNull($this->title,"title"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }