1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.im.chat.scenegroup.template.close request
- *
- * @author auto create
- * @since 1.0, 2020.12.24
- */
- class OapiImChatScenegroupTemplateCloseRequest
- {
- /**
- * 启用模式
- **/
- private $applyMode;
-
- /**
- * 加密cid,必填
- **/
- private $openConversationId;
-
- /**
- * 群主userid
- **/
- private $ownerUserId;
-
- /**
- * 群模板ID
- **/
- private $templateId;
-
- private $apiParas = array();
-
- public function setApplyMode($applyMode)
- {
- $this->applyMode = $applyMode;
- $this->apiParas["apply_mode"] = $applyMode;
- }
- public function getApplyMode()
- {
- return $this->applyMode;
- }
- public function setOpenConversationId($openConversationId)
- {
- $this->openConversationId = $openConversationId;
- $this->apiParas["open_conversation_id"] = $openConversationId;
- }
- public function getOpenConversationId()
- {
- return $this->openConversationId;
- }
- public function setOwnerUserId($ownerUserId)
- {
- $this->ownerUserId = $ownerUserId;
- $this->apiParas["owner_user_id"] = $ownerUserId;
- }
- public function getOwnerUserId()
- {
- return $this->ownerUserId;
- }
- public function setTemplateId($templateId)
- {
- $this->templateId = $templateId;
- $this->apiParas["template_id"] = $templateId;
- }
- public function getTemplateId()
- {
- return $this->templateId;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.im.chat.scenegroup.template.close";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->openConversationId,"openConversationId");
- RequestCheckUtil::checkNotNull($this->ownerUserId,"ownerUserId");
- RequestCheckUtil::checkNotNull($this->templateId,"templateId");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|