OapiReportSimplelistRequest.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.report.simplelist request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.12.18
  7. */
  8. class OapiReportSimplelistRequest
  9. {
  10. /**
  11. * 查询游标,初始传入0,后续从上一次的返回值中获取
  12. **/
  13. private $cursor;
  14. /**
  15. * 查询截止时间
  16. **/
  17. private $endTime;
  18. /**
  19. * 每页数据量
  20. **/
  21. private $size;
  22. /**
  23. * 查询起始时间
  24. **/
  25. private $startTime;
  26. /**
  27. * 要查询的模板名称
  28. **/
  29. private $templateName;
  30. /**
  31. * 员工的userid
  32. **/
  33. private $userid;
  34. private $apiParas = array();
  35. public function setCursor($cursor)
  36. {
  37. $this->cursor = $cursor;
  38. $this->apiParas["cursor"] = $cursor;
  39. }
  40. public function getCursor()
  41. {
  42. return $this->cursor;
  43. }
  44. public function setEndTime($endTime)
  45. {
  46. $this->endTime = $endTime;
  47. $this->apiParas["end_time"] = $endTime;
  48. }
  49. public function getEndTime()
  50. {
  51. return $this->endTime;
  52. }
  53. public function setSize($size)
  54. {
  55. $this->size = $size;
  56. $this->apiParas["size"] = $size;
  57. }
  58. public function getSize()
  59. {
  60. return $this->size;
  61. }
  62. public function setStartTime($startTime)
  63. {
  64. $this->startTime = $startTime;
  65. $this->apiParas["start_time"] = $startTime;
  66. }
  67. public function getStartTime()
  68. {
  69. return $this->startTime;
  70. }
  71. public function setTemplateName($templateName)
  72. {
  73. $this->templateName = $templateName;
  74. $this->apiParas["template_name"] = $templateName;
  75. }
  76. public function getTemplateName()
  77. {
  78. return $this->templateName;
  79. }
  80. public function setUserid($userid)
  81. {
  82. $this->userid = $userid;
  83. $this->apiParas["userid"] = $userid;
  84. }
  85. public function getUserid()
  86. {
  87. return $this->userid;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "dingtalk.oapi.report.simplelist";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->cursor,"cursor");
  100. RequestCheckUtil::checkNotNull($this->endTime,"endTime");
  101. RequestCheckUtil::checkNotNull($this->size,"size");
  102. RequestCheckUtil::checkNotNull($this->startTime,"startTime");
  103. }
  104. public function putOtherTextParam($key, $value) {
  105. $this->apiParas[$key] = $value;
  106. $this->$key = $value;
  107. }
  108. }