|
@@ -35,7 +35,7 @@ public class UserAuthoricationServiceImpl implements UserAuthoricationService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void queryUserAuthority(Integer userId, String... roleNames) {
|
|
|
+ public UserDetail queryUserAuthority(Integer userId, String... roleNames) {
|
|
|
UserDetail userDetail = userAuthoricationMapper.queryUserAuthority(userId);
|
|
|
if(userDetail==null){
|
|
|
throw new RuntimeException("无此用户");
|
|
@@ -51,9 +51,9 @@ public class UserAuthoricationServiceImpl implements UserAuthoricationService {
|
|
|
}
|
|
|
if (!flag) {
|
|
|
throw new RuntimeException("无权操作");
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+ return userDetail;
|
|
|
}
|
|
|
|
|
|
}
|