| | |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import lombok.AccessLevel; |
| | | import lombok.NoArgsConstructor; |
| | | import org.dromara.common.core.constant.SystemConstants; |
| | | import org.dromara.common.core.constant.TenantConstants; |
| | | import org.dromara.common.core.constant.UserConstants; |
| | | import org.dromara.common.core.domain.model.LoginUser; |
| | | import org.dromara.common.core.enums.UserType; |
| | | |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 登录鉴权助手 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取用户id |
| | | */ |
| | | public static String getUserIdStr() { |
| | | return Convert.toStr(getExtra(USER_KEY)); |
| | | } |
| | | |
| | | /** |
| | | * 获取用户账户 |
| | | */ |
| | | public static String getUsername() { |
| | |
| | | * @return 结果 |
| | | */ |
| | | public static boolean isSuperAdmin(Long userId) { |
| | | return UserConstants.SUPER_ADMIN_ID.equals(userId); |
| | | return SystemConstants.SUPER_ADMIN_ID.equals(userId); |
| | | } |
| | | |
| | | /** |