model = new AdminModel(); parent::__construct($app); } /** * @param Request $request * @return \think\response\View * @throws \think\db\exception\DbException */ public function index(Request $request) { View::assign([ 'list' => $this->model->findByPaginate() ]); return view(); } public function add() { return view(); } }