repository = $repository; } public function getList() { [$page, $limit] = $this->getPage(); $where = $this->request->params(['keyword', 'date', 'type']); return app('json')->success($this->repository->getList($where, $page, $limit)); } public function type() { return app('json')->success($this->repository->type()); } }