From f724cc2e6f91709f4a4da6fc00b3058669f66ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=B2=90?= Date: Thu, 24 Nov 2022 23:25:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=9B=91=E6=8E=A7SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/dm8/module/maku-module-monitor.sql | 8 ++++++++ db/mysql/module/maku-module-monitor.sql | 6 ++++++ db/postgresql/module/maku-module-monitor.sql | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 db/dm8/module/maku-module-monitor.sql create mode 100644 db/mysql/module/maku-module-monitor.sql create mode 100644 db/postgresql/module/maku-module-monitor.sql diff --git a/db/dm8/module/maku-module-monitor.sql b/db/dm8/module/maku-module-monitor.sql new file mode 100644 index 0000000..9aa79f9 --- /dev/null +++ b/db/dm8/module/maku-module-monitor.sql @@ -0,0 +1,8 @@ +SET IDENTITY_INSERT sys_menu ON; +INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1201, 33, '系统监控', '', '', 0, 0, 'icon-Report', 10, 0, 0, 10000, now(), 10000, now()); + +INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1202, 1201, '服务监控', 'monitor/server/index', 'monitor:server:all', 0, 0, 'icon-sever', 0, 0, 0, 10000, now(), 10000, now()); +INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1203, 1201, 'Java监控', '{{apiUrl}}/monitor/admin', null, 0, 0, 'icon-pointmap', 1, 0, 0, 10000, now(), 10000, now()); +INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1204, 1201 '缓存监控', 'monitor/cache/index', 'monitor:cache:all', 0, 0, 'icon-fund-fill', 2, 0, 0, 10000, now(), 10000, now()); + +commit; \ No newline at end of file diff --git a/db/mysql/module/maku-module-monitor.sql b/db/mysql/module/maku-module-monitor.sql new file mode 100644 index 0000000..8737dc5 --- /dev/null +++ b/db/mysql/module/maku-module-monitor.sql @@ -0,0 +1,6 @@ +INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (33, '系统监控', '', '', 0, 0, 'icon-Report', 10, 0, 0, 10000, now(), 10000, now()); + +set @menuId = @@identity; +INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ((SELECT @menuId), '服务监控', 'monitor/server/index', 'monitor:server:all', 0, 0, 'icon-sever', 0, 0, 0, 10000, now(), 10000, now()); +INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ((SELECT @menuId), 'Java监控', '{{apiUrl}}/monitor/admin', null, 0, 0, 'icon-pointmap', 1, 0, 0, 10000, now(), 10000, now()); +INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ((SELECT @menuId), '缓存监控', 'monitor/cache/index', 'monitor:cache:all', 0, 0, 'icon-fund-fill', 2, 0, 0, 10000, now(), 10000, now()); diff --git a/db/postgresql/module/maku-module-monitor.sql b/db/postgresql/module/maku-module-monitor.sql new file mode 100644 index 0000000..ff4d029 --- /dev/null +++ b/db/postgresql/module/maku-module-monitor.sql @@ -0,0 +1,7 @@ +INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1201, 33, '系统监控', '', '', 0, 0, 'icon-Report', 10, 0, 0, 10000, now(), 10000, now()); + +INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1202, 1201, '服务监控', 'monitor/server/index', 'monitor:server:all', 0, 0, 'icon-sever', 0, 0, 0, 10000, now(), 10000, now()); +INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1203, 1201, 'Java监控', '{{apiUrl}}/monitor/admin', null, 0, 0, 'icon-pointmap', 1, 0, 0, 10000, now(), 10000, now()); +INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1204, 1201 '缓存监控', 'monitor/cache/index', 'monitor:cache:all', 0, 0, 'icon-fund-fill', 2, 0, 0, 10000, now(), 10000, now()); + +commit; \ No newline at end of file