接口调整

This commit is contained in:
2026-03-23 11:43:29 +08:00
parent 5a799d6a0d
commit 95e6f1faea
8 changed files with 236 additions and 7 deletions

View File

@@ -646,4 +646,60 @@ CREATE TABLE `system_users` (
-- ----------------------------
INSERT INTO `system_users` VALUES (1, 'admin', '$2a$04$KljJDa/LK7QfDm0lF5OhuePhlPfjRH3tB2Wu351Uidz.oQGJXevPi', '灿能源码', '管理员', 103, 2, NULL, '[1,2]', '11aoteman@126.com', '18818260272', 2, 'http://test.rdms.iocoder.cn/20250921/avatar_1758423875594.png', 0, '192.168.2.125', '2026-03-18 16:18:02', 'admin', '2021-01-05 17:03:47', 'system', '2026-03-19 13:59:04', b'0');
-- ----------------------------
-- system_menu 路由扩展字段
-- ----------------------------
ALTER TABLE `system_menu`
ADD COLUMN `route_kind` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '路由类型dir/view/single/iframe/external/redirect' AFTER `component_name`,
ADD COLUMN `route_props_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '路由 props JSON' AFTER `route_kind`;
UPDATE `system_menu`
SET `component` = 'view.iframe-page',
`component_name` = 'document_antd',
`route_kind` = 'iframe',
`route_props_json` = '{\"url\":\"https://www.antdv.com/\"}'
WHERE `id` = 900010;
UPDATE `system_menu`
SET `component` = 'view.iframe-page',
`component_name` = 'document_naive',
`route_kind` = 'iframe',
`route_props_json` = '{\"url\":\"https://www.naiveui.com/\"}'
WHERE `id` = 900011;
UPDATE `system_menu`
SET `component` = 'view.iframe-page',
`component_name` = 'document_element_plus',
`route_kind` = 'iframe',
`route_props_json` = '{\"url\":\"https://cn.element-plus.org/\"}'
WHERE `id` = 900012;
UPDATE `system_menu`
SET `component` = 'view.iframe-page',
`component_name` = 'document_alova',
`route_kind` = 'iframe',
`route_props_json` = '{\"url\":\"https://alova.js.org/\"}'
WHERE `id` = 900013;
UPDATE `system_menu`
SET `component` = 'view.iframe-page',
`component_name` = 'document_unocss',
`route_kind` = 'iframe',
`route_props_json` = '{\"url\":\"https://unocss.dev/\"}'
WHERE `id` = 900014;
UPDATE `system_menu`
SET `component` = 'view.iframe-page',
`component_name` = 'document_vite',
`route_kind` = 'iframe',
`route_props_json` = '{\"url\":\"https://vite.dev/\"}'
WHERE `id` = 900015;
UPDATE `system_menu`
SET `component` = 'view.iframe-page',
`component_name` = 'document_vue',
`route_kind` = 'iframe',
`route_props_json` = '{\"url\":\"https://cn.vuejs.org/\"}'
WHERE `id` = 900016;
SET FOREIGN_KEY_CHECKS = 1;