123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.report.simplelist request
- *
- * @author auto create
- * @since 1.0, 2019.12.18
- */
- class OapiReportSimplelistRequest
- {
- /**
- * 查询游标,初始传入0,后续从上一次的返回值中获取
- **/
- private $cursor;
-
- /**
- * 查询截止时间
- **/
- private $endTime;
-
- /**
- * 每页数据量
- **/
- private $size;
-
- /**
- * 查询起始时间
- **/
- private $startTime;
-
- /**
- * 要查询的模板名称
- **/
- private $templateName;
-
- /**
- * 员工的userid
- **/
- private $userid;
-
- private $apiParas = array();
-
- public function setCursor($cursor)
- {
- $this->cursor = $cursor;
- $this->apiParas["cursor"] = $cursor;
- }
- public function getCursor()
- {
- return $this->cursor;
- }
- public function setEndTime($endTime)
- {
- $this->endTime = $endTime;
- $this->apiParas["end_time"] = $endTime;
- }
- public function getEndTime()
- {
- return $this->endTime;
- }
- public function setSize($size)
- {
- $this->size = $size;
- $this->apiParas["size"] = $size;
- }
- public function getSize()
- {
- return $this->size;
- }
- public function setStartTime($startTime)
- {
- $this->startTime = $startTime;
- $this->apiParas["start_time"] = $startTime;
- }
- public function getStartTime()
- {
- return $this->startTime;
- }
- public function setTemplateName($templateName)
- {
- $this->templateName = $templateName;
- $this->apiParas["template_name"] = $templateName;
- }
- public function getTemplateName()
- {
- return $this->templateName;
- }
- public function setUserid($userid)
- {
- $this->userid = $userid;
- $this->apiParas["userid"] = $userid;
- }
- public function getUserid()
- {
- return $this->userid;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.report.simplelist";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->cursor,"cursor");
- RequestCheckUtil::checkNotNull($this->endTime,"endTime");
- RequestCheckUtil::checkNotNull($this->size,"size");
- RequestCheckUtil::checkNotNull($this->startTime,"startTime");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|