OapiRetailUserUnbindRequest.php 1.5 KB

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