checkParam; } public function setCheckParam($checkParam) { $this->checkParam = $checkParam; } public function setPageNo($pageNo) { $this->pageNo = $pageNo; $this->apiParams["pageNo"] = $pageNo; } public function getPageNo() { return $this->pageNo; } public function setPageSize($pageSize) { $this->pageSize = $pageSize; $this->apiParams["pageSize"] = $pageSize; } public function getPageSize() { return $this->pageSize; } protected $pointParams = array(); public function getPointParams() { return $this->pointParams; } public function setPointParams($pointParams) { $this->pointParams = $pointParams; } public function check($pageNoMin = 1, $pageNoMax = 99999, $pageSizeMin = 10, $pageSizeMax = 50) { // 若为空,设置默认值 if (RequestCheckUtil::checkEmpty($this->pageNo)){ $this->pageNo = $pageNoMin; } if (RequestCheckUtil::checkEmpty($this->pageSize)){ $this->pageSize = $pageSizeMin; } RequestCheckUtil::checkPositiveInteger($this->pageNo, 'pageNo'); RequestCheckUtil::checkMinValue($this->pageNo, $pageNoMin, 'pageNo'); RequestCheckUtil::checkMaxValue($this->pageNo, $pageNoMax, 'pageNo'); RequestCheckUtil::checkPositiveInteger($this->pageSize, 'pageSize'); RequestCheckUtil::checkMinValue($this->pageSize, $pageSizeMin, 'pageSize'); RequestCheckUtil::checkMaxValue($this->pageSize, $pageSizeMax, 'pageSize'); } } ?>