From 975a31421be8b42cea51c2f2d47cbe21683ee40a Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 23 Jun 2025 17:39:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89service=E3=80=81modu?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitmodules | 6 ++++++ app/xzgl/Service.php | 31 +++++++++++++++++++++++++++++ composer.json | 18 +++++++++++++---- plugs/custom-app-plug/composer.json | 26 ++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 app/xzgl/Service.php create mode 100644 plugs/custom-app-plug/composer.json diff --git a/.gitmodules b/.gitmodules index 8631068..51148e8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,9 @@ [submodule "plugs/think-plugs-staff"] path = plugs/think-plugs-staff url = ssh://git@git.jerryyan.net:29022/q792602257/think-plugs-staff.git +[submodule "plugs/think-plugs-recorder"] + path = plugs/think-plugs-recorder + url = ssh://git@git.jerryyan.net:29022/q792602257/think-plugs-recorder.git +[submodule "plugs/think-plugs-notice"] + path = plugs/think-plugs-notice + url = ssh://git@git.jerryyan.net:29022/q792602257/think-plugs-notice.git diff --git a/app/xzgl/Service.php b/app/xzgl/Service.php new file mode 100644 index 0000000..9363550 --- /dev/null +++ b/app/xzgl/Service.php @@ -0,0 +1,31 @@ + '行政管理', + 'subs' => [ + ['name' => '员工档案', 'icon' => 'layui-icon layui-icon-group', 'url' => 'xzgl/user/index'], + ['name' => '通知公告', 'icon' => 'layui-icon layui-icon-cols', 'url' => 'xzgl/notice/index'], + ] + ], + [ + 'name' => '证书管理', + 'subs' => [ + ['name' => '证书管理', 'icon' => 'layui-icon layui-icon-auz', 'url' => 'xzgl/staff_cert/index'], + ['name' => '证书管理', 'icon' => 'layui-icon layui-icon-auz', 'url' => 'xzgl/company_cert/index'], + ] + ] + ]; + } +} \ No newline at end of file diff --git a/composer.json b/composer.json index d7dfd6c..94e1b83 100644 --- a/composer.json +++ b/composer.json @@ -20,15 +20,25 @@ "zoujingli/think-install": true } }, - "repositories": { - "think-plug-staff": { + "repositories": [ + { "type": "path", "url": "plugs/think-plugs-staff" + }, + { + "type": "path", + "url": "plugs/think-plugs-recorder" + }, + { + "type": "path", + "url": "plugs/custom-app-plug" } - }, + ], "require": { "php": ">=8.3", "zoujingli/think-plugs-admin": "^1.0", - "q792602257/think-plugs-staff": "dev-master" + "q792602257/custom-app-plug": "dev-master", + "q792602257/think-plugs-staff": "dev-master", + "q792602257/think-plugs-recorder": "dev-master" } } \ No newline at end of file diff --git a/plugs/custom-app-plug/composer.json b/plugs/custom-app-plug/composer.json new file mode 100644 index 0000000..917b5c9 --- /dev/null +++ b/plugs/custom-app-plug/composer.json @@ -0,0 +1,26 @@ +{ + "name": "q792602257/custom-app-plug", + "description": "ThinkAdmin Plugin: Add Custom Plugs Located in app", + "version": "dev-master", + "minimum-stability": "dev", + "license": "WTFPL", + "authors": [ + { + "name": "Jerry Yan", + "email": "792602257@qq.com" + } + ], + "extra": { + "config": { + "type": "module", + "name": "app插件", + "platforms": ["h5web"], + "description": "app目录下的插件定义" + }, + "think": { + "services": [ + "app\\xzgl\\Service" + ] + } + } +} \ No newline at end of file