OapiServiceReauthCorpRequest.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.service.reauth_corp request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.07.25
  7. */
  8. class OapiServiceReauthCorpRequest
  9. {
  10. /**
  11. * 套件下的微应用ID
  12. **/
  13. private $appId;
  14. /**
  15. * 未激活的corpid列表
  16. **/
  17. private $corpidList;
  18. private $apiParas = array();
  19. public function setAppId($appId)
  20. {
  21. $this->appId = $appId;
  22. $this->apiParas["app_id"] = $appId;
  23. }
  24. public function getAppId()
  25. {
  26. return $this->appId;
  27. }
  28. public function setCorpidList($corpidList)
  29. {
  30. $this->corpidList = $corpidList;
  31. $this->apiParas["corpid_list"] = $corpidList;
  32. }
  33. public function getCorpidList()
  34. {
  35. return $this->corpidList;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "dingtalk.oapi.service.reauth_corp";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. RequestCheckUtil::checkMaxListSize($this->corpidList,20,"corpidList");
  48. }
  49. public function putOtherTextParam($key, $value) {
  50. $this->apiParas[$key] = $value;
  51. $this->$key = $value;
  52. }
  53. }