group(function () use ($router){ // api路由 $router->get('api/getUserList', '\catchAdmin\api\controller\Api@getUserList'); });