repository = $repository; } public function getUserList() { $keyword = $this->request->param('keyword', ''); if (!$keyword) return app('json')->fail('请输入关键字'); [$page, $limit] = $this->getPage(); return app('json')->success($this->repository->merList($keyword, $page, $limit)); } }