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 setUseridList($useridList) { $this->useridList = $useridList; $this->apiParas["userid_list"] = $useridList; } public function getUseridList() { return $this->useridList; } public function getApiMethodName() { return "dingtalk.smartwork.checkin.record.get"; } 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"); RequestCheckUtil::checkNotNull($this->useridList,"useridList"); RequestCheckUtil::checkMaxListSize($this->useridList,10,"useridList"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }