refactor: 将 RuoYi 标记替换为 HZHub

This commit is contained in:
2026-03-27 06:42:14 +00:00
parent 849adec937
commit f115a793a7
988 changed files with 4836 additions and 4590 deletions

View File

@@ -3,25 +3,25 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.ruoyi</groupId>
<artifactId>ruoyi-common</artifactId>
<groupId>org.hzhub</groupId>
<artifactId>hzhub-common</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-common-satoken</artifactId>
<artifactId>hzhub-common-satoken</artifactId>
<dependencies>
<dependency>
<groupId>org.ruoyi</groupId>
<artifactId>ruoyi-common-core</artifactId>
<groupId>org.hzhub</groupId>
<artifactId>hzhub-common-core</artifactId>
</dependency>
<!-- RuoYi Common Redis-->
<!-- HZHub Common Redis-->
<dependency>
<groupId>org.ruoyi</groupId>
<artifactId>ruoyi-common-redis</artifactId>
<groupId>org.hzhub</groupId>
<artifactId>hzhub-common-redis</artifactId>
</dependency>
<!-- Sa-Token 权限认证, 在线文档http://sa-token.dev33.cn/ -->

View File

@@ -1,13 +1,13 @@
package org.ruoyi.common.satoken.config;
package org.hzhub.common.satoken.config;
import cn.dev33.satoken.dao.SaTokenDao;
import cn.dev33.satoken.jwt.StpLogicJwtForSimple;
import cn.dev33.satoken.stp.StpInterface;
import cn.dev33.satoken.stp.StpLogic;
import org.ruoyi.common.core.factory.YmlPropertySourceFactory;
import org.ruoyi.common.satoken.core.dao.PlusSaTokenDao;
import org.ruoyi.common.satoken.core.service.SaPermissionImpl;
import org.ruoyi.common.satoken.handler.SaTokenExceptionHandler;
import org.hzhub.common.core.factory.YmlPropertySourceFactory;
import org.hzhub.common.satoken.core.dao.PlusSaTokenDao;
import org.hzhub.common.satoken.core.service.SaPermissionImpl;
import org.hzhub.common.satoken.handler.SaTokenExceptionHandler;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;

View File

@@ -1,10 +1,10 @@
package org.ruoyi.common.satoken.core.dao;
package org.hzhub.common.satoken.core.dao;
import cn.dev33.satoken.dao.auto.SaTokenDaoBySessionFollowObject;
import cn.dev33.satoken.util.SaFoxUtil;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import org.ruoyi.common.redis.utils.RedisUtils;
import org.hzhub.common.redis.utils.RedisUtils;
import java.time.Duration;
import java.util.ArrayList;

View File

@@ -1,15 +1,15 @@
package org.ruoyi.common.satoken.core.service;
package org.hzhub.common.satoken.core.service;
import cn.dev33.satoken.stp.StpInterface;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
import org.ruoyi.common.core.domain.model.LoginUser;
import org.ruoyi.common.core.enums.UserType;
import org.ruoyi.common.core.exception.ServiceException;
import org.ruoyi.common.core.service.PermissionService;
import org.ruoyi.common.core.utils.SpringUtils;
import org.ruoyi.common.core.utils.StringUtils;
import org.ruoyi.common.satoken.utils.LoginHelper;
import org.hzhub.common.core.domain.model.LoginUser;
import org.hzhub.common.core.enums.UserType;
import org.hzhub.common.core.exception.ServiceException;
import org.hzhub.common.core.service.PermissionService;
import org.hzhub.common.core.utils.SpringUtils;
import org.hzhub.common.core.utils.StringUtils;
import org.hzhub.common.satoken.utils.LoginHelper;
import java.util.ArrayList;
import java.util.List;

View File

@@ -1,4 +1,4 @@
package org.ruoyi.common.satoken.handler;
package org.hzhub.common.satoken.handler;
import cn.dev33.satoken.exception.NotLoginException;
import cn.dev33.satoken.exception.NotPermissionException;
@@ -6,7 +6,7 @@ import cn.dev33.satoken.exception.NotRoleException;
import cn.hutool.http.HttpStatus;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.ruoyi.common.core.domain.R;
import org.hzhub.common.core.domain.R;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

View File

@@ -1,4 +1,4 @@
package org.ruoyi.common.satoken.utils;
package org.hzhub.common.satoken.utils;
import cn.dev33.satoken.session.SaSession;
import cn.dev33.satoken.stp.StpUtil;
@@ -8,10 +8,10 @@ import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.ruoyi.common.core.constant.SystemConstants;
import org.ruoyi.common.core.constant.TenantConstants;
import org.ruoyi.common.core.domain.model.LoginUser;
import org.ruoyi.common.core.enums.UserType;
import org.hzhub.common.core.constant.SystemConstants;
import org.hzhub.common.core.constant.TenantConstants;
import org.hzhub.common.core.domain.model.LoginUser;
import org.hzhub.common.core.enums.UserType;
import java.util.Set;