page; } /** * 每页多少 * @return int|null */ public function getLimit() { return $this->limit; } public function requestRules() { return [ ['page', 'page', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null], ['limit', 'limit', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null], ]; } public function responseRules() { return [ ['result', 'result', 'bail', null, null], ]; } public function setResponse($result) { $this->result = $result; } }