OapiWorkspaceCorpMemberAddRequest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.workspace.corp.member.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.03.15
  7. */
  8. class OapiWorkspaceCorpMemberAddRequest
  9. {
  10. /**
  11. * 加人的成员列表
  12. **/
  13. private $memberAddDtoList;
  14. /**
  15. * 目标加人组织
  16. **/
  17. private $targetCorpId;
  18. private $apiParas = array();
  19. public function setMemberAddDtoList($memberAddDtoList)
  20. {
  21. $this->memberAddDtoList = $memberAddDtoList;
  22. $this->apiParas["member_add_dto_list"] = $memberAddDtoList;
  23. }
  24. public function getMemberAddDtoList()
  25. {
  26. return $this->memberAddDtoList;
  27. }
  28. public function setTargetCorpId($targetCorpId)
  29. {
  30. $this->targetCorpId = $targetCorpId;
  31. $this->apiParas["target_corp_id"] = $targetCorpId;
  32. }
  33. public function getTargetCorpId()
  34. {
  35. return $this->targetCorpId;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "dingtalk.oapi.workspace.corp.member.add";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. }
  48. public function putOtherTextParam($key, $value) {
  49. $this->apiParas[$key] = $value;
  50. $this->$key = $value;
  51. }
  52. }