OapiProcessinstanceCspaceInfoRequest.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.processinstance.cspace.info request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.12.20
  7. */
  8. class OapiProcessinstanceCspaceInfoRequest
  9. {
  10. /**
  11. * 企业应用标识(ISV调用必须设置)
  12. **/
  13. private $agentId;
  14. /**
  15. * 用户id
  16. **/
  17. private $userId;
  18. private $apiParas = array();
  19. public function setAgentId($agentId)
  20. {
  21. $this->agentId = $agentId;
  22. $this->apiParas["agent_id"] = $agentId;
  23. }
  24. public function getAgentId()
  25. {
  26. return $this->agentId;
  27. }
  28. public function setUserId($userId)
  29. {
  30. $this->userId = $userId;
  31. $this->apiParas["user_id"] = $userId;
  32. }
  33. public function getUserId()
  34. {
  35. return $this->userId;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "dingtalk.oapi.processinstance.cspace.info";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. RequestCheckUtil::checkNotNull($this->userId,"userId");
  48. }
  49. public function putOtherTextParam($key, $value) {
  50. $this->apiParas[$key] = $value;
  51. $this->$key = $value;
  52. }
  53. }