OapiWorkspaceTaskCleanRequest.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.workspace.task.clean request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.12.23
  7. */
  8. class OapiWorkspaceTaskCleanRequest
  9. {
  10. /**
  11. * 微应用agentId
  12. **/
  13. private $agentid;
  14. /**
  15. * 企业corpId
  16. **/
  17. private $corpId;
  18. /**
  19. * 操作者id
  20. **/
  21. private $operatorUserid;
  22. private $apiParas = array();
  23. public function setAgentid($agentid)
  24. {
  25. $this->agentid = $agentid;
  26. $this->apiParas["agentid"] = $agentid;
  27. }
  28. public function getAgentid()
  29. {
  30. return $this->agentid;
  31. }
  32. public function setCorpId($corpId)
  33. {
  34. $this->corpId = $corpId;
  35. $this->apiParas["corp_id"] = $corpId;
  36. }
  37. public function getCorpId()
  38. {
  39. return $this->corpId;
  40. }
  41. public function setOperatorUserid($operatorUserid)
  42. {
  43. $this->operatorUserid = $operatorUserid;
  44. $this->apiParas["operator_userid"] = $operatorUserid;
  45. }
  46. public function getOperatorUserid()
  47. {
  48. return $this->operatorUserid;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.workspace.task.clean";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->corpId,"corpId");
  61. }
  62. public function putOtherTextParam($key, $value) {
  63. $this->apiParas[$key] = $value;
  64. $this->$key = $value;
  65. }
  66. }