OapiCollectionFormListRequest.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.collection.form.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.06.16
  7. */
  8. class OapiCollectionFormListRequest
  9. {
  10. /**
  11. * 填表类型。0表示通用填表,1表示教育版填表
  12. **/
  13. private $bizType;
  14. /**
  15. * 填表创建人userid
  16. **/
  17. private $creator;
  18. /**
  19. * 分页游标,从0开始。后续取返回结果中next_cursor的值
  20. **/
  21. private $offset;
  22. /**
  23. * 分页大小,最大200
  24. **/
  25. private $size;
  26. private $apiParas = array();
  27. public function setBizType($bizType)
  28. {
  29. $this->bizType = $bizType;
  30. $this->apiParas["biz_type"] = $bizType;
  31. }
  32. public function getBizType()
  33. {
  34. return $this->bizType;
  35. }
  36. public function setCreator($creator)
  37. {
  38. $this->creator = $creator;
  39. $this->apiParas["creator"] = $creator;
  40. }
  41. public function getCreator()
  42. {
  43. return $this->creator;
  44. }
  45. public function setOffset($offset)
  46. {
  47. $this->offset = $offset;
  48. $this->apiParas["offset"] = $offset;
  49. }
  50. public function getOffset()
  51. {
  52. return $this->offset;
  53. }
  54. public function setSize($size)
  55. {
  56. $this->size = $size;
  57. $this->apiParas["size"] = $size;
  58. }
  59. public function getSize()
  60. {
  61. return $this->size;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.collection.form.list";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->offset,"offset");
  74. RequestCheckUtil::checkNotNull($this->size,"size");
  75. }
  76. public function putOtherTextParam($key, $value) {
  77. $this->apiParas[$key] = $value;
  78. $this->$key = $value;
  79. }
  80. }