-- =====================================================
-- 修复封禁菜单的component路径 (v2)
-- 参考blacklist的配置格式
-- =====================================================

-- 更新用户封禁菜单的component路径
UPDATE eb_system_menu 
SET component = '/userManage/ban/userBan'
WHERE `name` = '用户封禁';

-- 更新房间封禁菜单的component路径
UPDATE eb_system_menu 
SET component = '/userManage/ban/roomBan'
WHERE `name` = '房间封禁';

-- 验证更新结果
SELECT '=== 封禁菜单配置 ===' as info;
SELECT id, pid, `name`, perms, component, sort, is_show
FROM eb_system_menu 
WHERE `name` LIKE '%封禁%'
ORDER BY sort DESC;

-- 对比blacklist菜单配置
SELECT '=== 黑名单菜单配置（参考） ===' as info;
SELECT id, pid, `name`, perms, component, sort, is_show
FROM eb_system_menu 
WHERE `name` LIKE '%拉黑%'
ORDER BY sort DESC;
