OapiCustomerserviceMemberGetRequest.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.customerservice.member.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.03.29
  7. */
  8. class OapiCustomerserviceMemberGetRequest
  9. {
  10. /**
  11. * 钉钉企业id
  12. **/
  13. private $dingCorpId;
  14. /**
  15. * 实例id
  16. **/
  17. private $openInstanceId;
  18. /**
  19. * 1,智能客服
  20. **/
  21. private $productionType;
  22. /**
  23. * 三方租户id
  24. **/
  25. private $thirdTenantId;
  26. /**
  27. * 账号id
  28. **/
  29. private $userId;
  30. /**
  31. * 账号来源
  32. **/
  33. private $userSourceId;
  34. private $apiParas = array();
  35. public function setDingCorpId($dingCorpId)
  36. {
  37. $this->dingCorpId = $dingCorpId;
  38. $this->apiParas["ding_corp_id"] = $dingCorpId;
  39. }
  40. public function getDingCorpId()
  41. {
  42. return $this->dingCorpId;
  43. }
  44. public function setOpenInstanceId($openInstanceId)
  45. {
  46. $this->openInstanceId = $openInstanceId;
  47. $this->apiParas["open_instance_id"] = $openInstanceId;
  48. }
  49. public function getOpenInstanceId()
  50. {
  51. return $this->openInstanceId;
  52. }
  53. public function setProductionType($productionType)
  54. {
  55. $this->productionType = $productionType;
  56. $this->apiParas["production_type"] = $productionType;
  57. }
  58. public function getProductionType()
  59. {
  60. return $this->productionType;
  61. }
  62. public function setThirdTenantId($thirdTenantId)
  63. {
  64. $this->thirdTenantId = $thirdTenantId;
  65. $this->apiParas["third_tenant_id"] = $thirdTenantId;
  66. }
  67. public function getThirdTenantId()
  68. {
  69. return $this->thirdTenantId;
  70. }
  71. public function setUserId($userId)
  72. {
  73. $this->userId = $userId;
  74. $this->apiParas["user_id"] = $userId;
  75. }
  76. public function getUserId()
  77. {
  78. return $this->userId;
  79. }
  80. public function setUserSourceId($userSourceId)
  81. {
  82. $this->userSourceId = $userSourceId;
  83. $this->apiParas["user_source_id"] = $userSourceId;
  84. }
  85. public function getUserSourceId()
  86. {
  87. return $this->userSourceId;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "dingtalk.oapi.customerservice.member.get";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->thirdTenantId,"thirdTenantId");
  100. RequestCheckUtil::checkNotNull($this->userId,"userId");
  101. RequestCheckUtil::checkNotNull($this->userSourceId,"userSourceId");
  102. }
  103. public function putOtherTextParam($key, $value) {
  104. $this->apiParas[$key] = $value;
  105. $this->$key = $value;
  106. }
  107. }