-- 检查路由和角色配置

-- 1. 查看所有启用的路由
SELECT name, path, component, status 
FROM sys_route 
WHERE status = 1 
ORDER BY path;

-- 2. 查看所有角色的菜单配置
SELECT role_code, role_name, menus, status 
FROM sys_role 
WHERE status = 1;

-- 3. 查看用户的角色分配
SELECT user_id, user_name, roles, status 
FROM sys_user 
WHERE status = 1;
