OapiCallCalluserRequest.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.call.calluser request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.03
  7. */
  8. class OapiCallCalluserRequest
  9. {
  10. /**
  11. * 授权isv套件企业的corpid
  12. **/
  13. private $authedCorpId;
  14. /**
  15. * 授权isv套件企业的员工userid
  16. **/
  17. private $authedStaffId;
  18. /**
  19. * isv套件所属企业下的员工userid
  20. **/
  21. private $staffId;
  22. private $apiParas = array();
  23. public function setAuthedCorpId($authedCorpId)
  24. {
  25. $this->authedCorpId = $authedCorpId;
  26. $this->apiParas["authed_corp_id"] = $authedCorpId;
  27. }
  28. public function getAuthedCorpId()
  29. {
  30. return $this->authedCorpId;
  31. }
  32. public function setAuthedStaffId($authedStaffId)
  33. {
  34. $this->authedStaffId = $authedStaffId;
  35. $this->apiParas["authed_staff_id"] = $authedStaffId;
  36. }
  37. public function getAuthedStaffId()
  38. {
  39. return $this->authedStaffId;
  40. }
  41. public function setStaffId($staffId)
  42. {
  43. $this->staffId = $staffId;
  44. $this->apiParas["staff_id"] = $staffId;
  45. }
  46. public function getStaffId()
  47. {
  48. return $this->staffId;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.call.calluser";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->authedCorpId,"authedCorpId");
  61. RequestCheckUtil::checkNotNull($this->authedStaffId,"authedStaffId");
  62. RequestCheckUtil::checkNotNull($this->staffId,"staffId");
  63. }
  64. public function putOtherTextParam($key, $value) {
  65. $this->apiParas[$key] = $value;
  66. $this->$key = $value;
  67. }
  68. }