OapiImChatScenegroupTemplateCloseRequest.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.im.chat.scenegroup.template.close request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.12.24
  7. */
  8. class OapiImChatScenegroupTemplateCloseRequest
  9. {
  10. /**
  11. * 启用模式
  12. **/
  13. private $applyMode;
  14. /**
  15. * 加密cid,必填
  16. **/
  17. private $openConversationId;
  18. /**
  19. * 群主userid
  20. **/
  21. private $ownerUserId;
  22. /**
  23. * 群模板ID
  24. **/
  25. private $templateId;
  26. private $apiParas = array();
  27. public function setApplyMode($applyMode)
  28. {
  29. $this->applyMode = $applyMode;
  30. $this->apiParas["apply_mode"] = $applyMode;
  31. }
  32. public function getApplyMode()
  33. {
  34. return $this->applyMode;
  35. }
  36. public function setOpenConversationId($openConversationId)
  37. {
  38. $this->openConversationId = $openConversationId;
  39. $this->apiParas["open_conversation_id"] = $openConversationId;
  40. }
  41. public function getOpenConversationId()
  42. {
  43. return $this->openConversationId;
  44. }
  45. public function setOwnerUserId($ownerUserId)
  46. {
  47. $this->ownerUserId = $ownerUserId;
  48. $this->apiParas["owner_user_id"] = $ownerUserId;
  49. }
  50. public function getOwnerUserId()
  51. {
  52. return $this->ownerUserId;
  53. }
  54. public function setTemplateId($templateId)
  55. {
  56. $this->templateId = $templateId;
  57. $this->apiParas["template_id"] = $templateId;
  58. }
  59. public function getTemplateId()
  60. {
  61. return $this->templateId;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.im.chat.scenegroup.template.close";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->openConversationId,"openConversationId");
  74. RequestCheckUtil::checkNotNull($this->ownerUserId,"ownerUserId");
  75. RequestCheckUtil::checkNotNull($this->templateId,"templateId");
  76. }
  77. public function putOtherTextParam($key, $value) {
  78. $this->apiParas[$key] = $value;
  79. $this->$key = $value;
  80. }
  81. }