【8.0】【sys】获取用户信息接口增加管理员标识

pull/57/head
fengshuonan 2023-09-07 18:49:33 +08:00
parent e6ebda9b44
commit daa9c7e9d9
2 changed files with 9 additions and 0 deletions

View File

@ -59,4 +59,10 @@ public class UserIndexInfo {
@ChineseDescription("登录人的websocketUrl用来获取右上角的实时消息")
private String websocketUrl;
/**
*
*/
@ChineseDescription("管理员用户表示")
private Boolean superAdminFlag;
}

View File

@ -78,6 +78,9 @@ public class UserIndexInfoService {
// 返回结果初始化
UserIndexInfo userIndexInfo = new UserIndexInfo();
// 设置管理员用户表示
userIndexInfo.setSuperAdminFlag(LoginContext.me().getSuperAdminFlag());
// 获取当前登录用户
LoginUser loginUser = LoginContext.me().getLoginUser();