OapiRetailUserUnionidqueryRequest.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.retail.user.unionidquery request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.05.20
  7. */
  8. class OapiRetailUserUnionidqueryRequest
  9. {
  10. /**
  11. * 业务身份
  12. **/
  13. private $channel;
  14. /**
  15. * 主帐号ID
  16. **/
  17. private $outerId;
  18. /**
  19. * 子帐号ID
  20. **/
  21. private $subOuterId;
  22. private $apiParas = array();
  23. public function setChannel($channel)
  24. {
  25. $this->channel = $channel;
  26. $this->apiParas["channel"] = $channel;
  27. }
  28. public function getChannel()
  29. {
  30. return $this->channel;
  31. }
  32. public function setOuterId($outerId)
  33. {
  34. $this->outerId = $outerId;
  35. $this->apiParas["outer_id"] = $outerId;
  36. }
  37. public function getOuterId()
  38. {
  39. return $this->outerId;
  40. }
  41. public function setSubOuterId($subOuterId)
  42. {
  43. $this->subOuterId = $subOuterId;
  44. $this->apiParas["sub_outer_id"] = $subOuterId;
  45. }
  46. public function getSubOuterId()
  47. {
  48. return $this->subOuterId;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.retail.user.unionidquery";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->channel,"channel");
  61. RequestCheckUtil::checkNotNull($this->outerId,"outerId");
  62. RequestCheckUtil::checkNotNull($this->subOuterId,"subOuterId");
  63. }
  64. public function putOtherTextParam($key, $value) {
  65. $this->apiParas[$key] = $value;
  66. $this->$key = $value;
  67. }
  68. }