OapiDdpaasObjectdataListRequest.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.ddpaas.objectdata.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.06.28
  7. */
  8. class OapiDdpaasObjectdataListRequest
  9. {
  10. /**
  11. * 钉钉PaaS应用ID
  12. **/
  13. private $appUuid;
  14. /**
  15. * 当前操作用户ID,不填默认系统身份
  16. **/
  17. private $currentOperatorUserid;
  18. /**
  19. * 表单数据实例ID列表
  20. **/
  21. private $dataIdList;
  22. /**
  23. * 钉钉PaaS表单编号
  24. **/
  25. private $formCode;
  26. private $apiParas = array();
  27. public function setAppUuid($appUuid)
  28. {
  29. $this->appUuid = $appUuid;
  30. $this->apiParas["app_uuid"] = $appUuid;
  31. }
  32. public function getAppUuid()
  33. {
  34. return $this->appUuid;
  35. }
  36. public function setCurrentOperatorUserid($currentOperatorUserid)
  37. {
  38. $this->currentOperatorUserid = $currentOperatorUserid;
  39. $this->apiParas["current_operator_userid"] = $currentOperatorUserid;
  40. }
  41. public function getCurrentOperatorUserid()
  42. {
  43. return $this->currentOperatorUserid;
  44. }
  45. public function setDataIdList($dataIdList)
  46. {
  47. $this->dataIdList = $dataIdList;
  48. $this->apiParas["data_id_list"] = $dataIdList;
  49. }
  50. public function getDataIdList()
  51. {
  52. return $this->dataIdList;
  53. }
  54. public function setFormCode($formCode)
  55. {
  56. $this->formCode = $formCode;
  57. $this->apiParas["form_code"] = $formCode;
  58. }
  59. public function getFormCode()
  60. {
  61. return $this->formCode;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.ddpaas.objectdata.list";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->appUuid,"appUuid");
  74. RequestCheckUtil::checkNotNull($this->dataIdList,"dataIdList");
  75. RequestCheckUtil::checkMaxListSize($this->dataIdList,999,"dataIdList");
  76. RequestCheckUtil::checkNotNull($this->formCode,"formCode");
  77. }
  78. public function putOtherTextParam($key, $value) {
  79. $this->apiParas[$key] = $value;
  80. $this->$key = $value;
  81. }
  82. }