From 3cfffb7ed5e50598136cb022cf377dab2a0eb273 Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Mon, 8 Jun 2020 00:59:51 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E6=B7=BB=E5=8A=A0=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E7=94=9F=E6=88=90=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/command/FreshAdminRouter.php | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 application/command/FreshAdminRouter.php diff --git a/application/command/FreshAdminRouter.php b/application/command/FreshAdminRouter.php new file mode 100644 index 0000000..c8df1d4 --- /dev/null +++ b/application/command/FreshAdminRouter.php @@ -0,0 +1,29 @@ +setName('apiadmin:adminRouter')->setDescription('自动构建后端路由'); + } + + /** + * php think apiadmin:adminRouter + * @param Input $input + * @param Output $output + * @return int|void|null + * @throws \think\Exception + * @author zhaoxiang + */ + protected function execute(Input $input, Output $output) { + RouterTool::buildAdminRouter(); + $output->info('路由构建成功'); + } +}