OapiProjectPointHistoryPageRequest.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.project.point.history.page request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.12.28
  7. */
  8. class OapiProjectPointHistoryPageRequest
  9. {
  10. /**
  11. * 数据游标,初始传0。后续传入返回参数中的next_cursor值
  12. **/
  13. private $cursor;
  14. /**
  15. * 每页大小,最大200条
  16. **/
  17. private $pageSize;
  18. /**
  19. * 业务ID(固定值,农村积分传7001)
  20. **/
  21. private $tenantId;
  22. /**
  23. * 用户id
  24. **/
  25. private $userid;
  26. private $apiParas = array();
  27. public function setCursor($cursor)
  28. {
  29. $this->cursor = $cursor;
  30. $this->apiParas["cursor"] = $cursor;
  31. }
  32. public function getCursor()
  33. {
  34. return $this->cursor;
  35. }
  36. public function setPageSize($pageSize)
  37. {
  38. $this->pageSize = $pageSize;
  39. $this->apiParas["page_size"] = $pageSize;
  40. }
  41. public function getPageSize()
  42. {
  43. return $this->pageSize;
  44. }
  45. public function setTenantId($tenantId)
  46. {
  47. $this->tenantId = $tenantId;
  48. $this->apiParas["tenant_id"] = $tenantId;
  49. }
  50. public function getTenantId()
  51. {
  52. return $this->tenantId;
  53. }
  54. public function setUserid($userid)
  55. {
  56. $this->userid = $userid;
  57. $this->apiParas["userid"] = $userid;
  58. }
  59. public function getUserid()
  60. {
  61. return $this->userid;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.project.point.history.page";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->cursor,"cursor");
  74. RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
  75. RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
  76. }
  77. public function putOtherTextParam($key, $value) {
  78. $this->apiParas[$key] = $value;
  79. $this->$key = $value;
  80. }
  81. }