OapiReportListRequest.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.report.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2022.09.23
  7. */
  8. class OapiReportListRequest
  9. {
  10. /**
  11. * 查询游标,初始传入0,后续从上一次的返回值中获取
  12. **/
  13. private $cursor;
  14. /**
  15. * 查询的日志创建的结束时间
  16. **/
  17. private $endTime;
  18. /**
  19. * 查询的日志修改的结束时间
  20. **/
  21. private $modifiedEndTime;
  22. /**
  23. * 查询的日志修改的开始时间
  24. **/
  25. private $modifiedStartTime;
  26. /**
  27. * 每页数据量
  28. **/
  29. private $size;
  30. /**
  31. * 查询的日志创建的开始时间
  32. **/
  33. private $startTime;
  34. /**
  35. * 要查询的模板名称
  36. **/
  37. private $templateName;
  38. /**
  39. * 员工的userid
  40. **/
  41. private $userid;
  42. private $apiParas = array();
  43. public function setCursor($cursor)
  44. {
  45. $this->cursor = $cursor;
  46. $this->apiParas["cursor"] = $cursor;
  47. }
  48. public function getCursor()
  49. {
  50. return $this->cursor;
  51. }
  52. public function setEndTime($endTime)
  53. {
  54. $this->endTime = $endTime;
  55. $this->apiParas["end_time"] = $endTime;
  56. }
  57. public function getEndTime()
  58. {
  59. return $this->endTime;
  60. }
  61. public function setModifiedEndTime($modifiedEndTime)
  62. {
  63. $this->modifiedEndTime = $modifiedEndTime;
  64. $this->apiParas["modified_end_time"] = $modifiedEndTime;
  65. }
  66. public function getModifiedEndTime()
  67. {
  68. return $this->modifiedEndTime;
  69. }
  70. public function setModifiedStartTime($modifiedStartTime)
  71. {
  72. $this->modifiedStartTime = $modifiedStartTime;
  73. $this->apiParas["modified_start_time"] = $modifiedStartTime;
  74. }
  75. public function getModifiedStartTime()
  76. {
  77. return $this->modifiedStartTime;
  78. }
  79. public function setSize($size)
  80. {
  81. $this->size = $size;
  82. $this->apiParas["size"] = $size;
  83. }
  84. public function getSize()
  85. {
  86. return $this->size;
  87. }
  88. public function setStartTime($startTime)
  89. {
  90. $this->startTime = $startTime;
  91. $this->apiParas["start_time"] = $startTime;
  92. }
  93. public function getStartTime()
  94. {
  95. return $this->startTime;
  96. }
  97. public function setTemplateName($templateName)
  98. {
  99. $this->templateName = $templateName;
  100. $this->apiParas["template_name"] = $templateName;
  101. }
  102. public function getTemplateName()
  103. {
  104. return $this->templateName;
  105. }
  106. public function setUserid($userid)
  107. {
  108. $this->userid = $userid;
  109. $this->apiParas["userid"] = $userid;
  110. }
  111. public function getUserid()
  112. {
  113. return $this->userid;
  114. }
  115. public function getApiMethodName()
  116. {
  117. return "dingtalk.oapi.report.list";
  118. }
  119. public function getApiParas()
  120. {
  121. return $this->apiParas;
  122. }
  123. public function check()
  124. {
  125. RequestCheckUtil::checkNotNull($this->cursor,"cursor");
  126. RequestCheckUtil::checkNotNull($this->endTime,"endTime");
  127. RequestCheckUtil::checkNotNull($this->size,"size");
  128. RequestCheckUtil::checkNotNull($this->startTime,"startTime");
  129. }
  130. public function putOtherTextParam($key, $value) {
  131. $this->apiParas[$key] = $value;
  132. $this->$key = $value;
  133. }
  134. }