fix: 添加UserService.isAdminUser方法以修复编译错误
This commit is contained in:
parent
2bd4163328
commit
d08f0a3d47
@ -1302,4 +1302,12 @@ public class UserService {
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查用户是否是管理员
|
||||
*/
|
||||
public boolean isAdminUser(Long userId) {
|
||||
User user = userMapper.selectById(userId);
|
||||
return user != null && user.getIsAdmin() != null && user.getIsAdmin() == 1;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user