三表联查,获取当前用户的权限菜单JSON数据
    image.png

    1. select resource.* from role_user
    2. inner join role_resource
    3. on role_user.roel_id = role_resource.roel_id
    4. inner join resource
    5. on role_resource.resource_id = resource.id
    6. where role_user.user_id = 1