123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.impaas.newretail.sendstaffmessage request
- *
- * @author auto create
- * @since 1.0, 2019.07.03
- */
- class OapiImpaasNewretailSendstaffmessageRequest
- {
- /**
- * 消息体
- **/
- private $content;
-
- /**
- * 0系统消息
- **/
- private $msgType;
-
- /**
- * 系统账号
- **/
- private $sender;
-
- /**
- * 用账号列表
- **/
- private $useridList;
-
- private $apiParas = array();
-
- public function setContent($content)
- {
- $this->content = $content;
- $this->apiParas["content"] = $content;
- }
- public function getContent()
- {
- return $this->content;
- }
- public function setMsgType($msgType)
- {
- $this->msgType = $msgType;
- $this->apiParas["msg_type"] = $msgType;
- }
- public function getMsgType()
- {
- return $this->msgType;
- }
- public function setSender($sender)
- {
- $this->sender = $sender;
- $this->apiParas["sender"] = $sender;
- }
- public function getSender()
- {
- return $this->sender;
- }
- public function setUseridList($useridList)
- {
- $this->useridList = $useridList;
- $this->apiParas["userid_list"] = $useridList;
- }
- public function getUseridList()
- {
- return $this->useridList;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.impaas.newretail.sendstaffmessage";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkMaxListSize($this->useridList,100,"useridList");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|