🎉 2.7.2.RELEASE 集成JustAuth支持第三方登录

This commit is contained in:
smallchill 2020-08-20 10:38:35 +08:00
parent 13798e3621
commit 113f99bf73
1 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,9 @@ public class MenuController extends BladeController {
@ApiOperationSupport(order = 10)
@ApiOperation(value = "菜单的角色权限")
public R<List<Kv>> authRoutes(BladeUser user) {
if (Func.isEmpty(user) || user.getUserId() == 0L) {
return null;
}
return R.data(menuService.authRoutes(user));
}