repository = $repository; $this->userInfo = $this->request->isLogin() ? $this->request->userInfo() : null; } public function lst() { [$page, $limit] = $this->getPage(); $where = $this->request->params(['type','star']); return app('json')->success($this->repository->getApiList($where,$page, $limit)); } public function userCount() { return app('json')->success($this->repository->getUserCount()); } }