-- 对比正常工作的菜单和礼物菜单

-- 1. 查看直播管理菜单（这个应该是正常工作的）
SELECT 
    m.id,
    m.pid,
    m.name as '菜单名',
    m.component as '组件路径',
    m.menu_type as '类型',
    m.icon,
    m.perms as '权限标识'
FROM eb_system_menu m
WHERE m.name = '直播管理' OR m.pid = (SELECT id FROM eb_system_menu WHERE name = '直播管理' LIMIT 1)
ORDER BY m.pid, m.sort;

-- 2. 查看礼物打赏菜单
SELECT 
    m.id,
    m.pid,
    m.name as '菜单名',
    m.component as '组件路径',
    m.menu_type as '类型',
    m.icon,
    m.perms as '权限标识'
FROM eb_system_menu m
WHERE m.name = '礼物打赏' OR m.pid = (SELECT id FROM eb_system_menu WHERE name = '礼物打赏' LIMIT 1)
ORDER BY m.pid, m.sort;

-- 3. 查看用户管理菜单（另一个正常工作的）
SELECT 
    m.id,
    m.pid,
    m.name as '菜单名',
    m.component as '组件路径',
    m.menu_type as '类型'
FROM eb_system_menu m
WHERE m.name = '用户管理' OR m.pid = (SELECT id FROM eb_system_menu WHERE name = '用户管理' LIMIT 1)
ORDER BY m.pid, m.sort
LIMIT 5;
