Files
as-partner-frontend/db/add-jetsen-media-menu.sql
2026-07-26 12:54:46 +08:00

21 lines
1.1 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ============================================================
-- 橘视厅媒资管理菜单
-- 目标库:as-daycard-openapi(dev-0418.sys_menu)
-- 路由映射:menu.url='jetsen-media/list' -> src/views/modules/jetsen-media/list.vue
-- 依赖后端接口:GET /sys/jetsen-media/{nav,tags,list,search,export}(as-daycard-openapi)
-- ============================================================
-- 新建顶级目录"媒资管理" + 子菜单"橘视厅媒资"
-- 超级管理员(org_id IS NULL) 自动拥有全部 type IN(0,1) 且 show='10' 的菜单,无需配 sys_role_menu。
INSERT INTO `sys_menu`
(`id`, `parent_id`, `name`, `url`, `perms`, `type`, `icon`, `show`, `order_num`, `created_at`, `updated_at`)
VALUES
(116, 0, '媒资管理', NULL, '', 0, 'Film', '10', 2, NOW(), NOW()),
(117, 116, '橘视厅媒资', 'jetsen-media/list', '', 1, 'Film', '10', 1, NOW(), NOW());
-- 非超管角色授权(按需执行):
-- INSERT INTO `sys_role_menu` (`role_id`, `menu_id`) VALUES (<ROLE_ID>, 116), (<ROLE_ID>, 117);
-- 回滚:
-- DELETE FROM `sys_menu` WHERE `id` IN (116, 117);