refactor: 将 RuoYi 标记替换为 HZHub
This commit is contained in:
@@ -3,28 +3,28 @@
|
||||
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-tenant</artifactId>
|
||||
<artifactId>hzhub-common-tenant</artifactId>
|
||||
|
||||
<description>
|
||||
ruoyi-common-tenant 租户模块
|
||||
hzhub-common-tenant 租户模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common-mybatis</artifactId>
|
||||
<groupId>org.hzhub</groupId>
|
||||
<artifactId>hzhub-common-mybatis</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common-redis</artifactId>
|
||||
<groupId>org.hzhub</groupId>
|
||||
<artifactId>hzhub-common-redis</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
package org.ruoyi.common.tenant.config;
|
||||
package org.hzhub.common.tenant.config;
|
||||
|
||||
import cn.dev33.satoken.dao.SaTokenDao;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.inner.TenantLineInnerInterceptor;
|
||||
import org.ruoyi.common.core.utils.reflect.ReflectUtils;
|
||||
import org.ruoyi.common.redis.config.RedisConfig;
|
||||
import org.ruoyi.common.redis.config.properties.RedissonProperties;
|
||||
import org.ruoyi.common.tenant.core.TenantSaTokenDao;
|
||||
import org.ruoyi.common.tenant.handle.PlusTenantLineHandler;
|
||||
import org.ruoyi.common.tenant.handle.TenantKeyPrefixHandler;
|
||||
import org.ruoyi.common.tenant.manager.TenantSpringCacheManager;
|
||||
import org.ruoyi.common.tenant.properties.TenantProperties;
|
||||
import org.hzhub.common.core.utils.reflect.ReflectUtils;
|
||||
import org.hzhub.common.redis.config.RedisConfig;
|
||||
import org.hzhub.common.redis.config.properties.RedissonProperties;
|
||||
import org.hzhub.common.tenant.core.TenantSaTokenDao;
|
||||
import org.hzhub.common.tenant.handle.PlusTenantLineHandler;
|
||||
import org.hzhub.common.tenant.handle.TenantKeyPrefixHandler;
|
||||
import org.hzhub.common.tenant.manager.TenantSpringCacheManager;
|
||||
import org.hzhub.common.tenant.properties.TenantProperties;
|
||||
import org.redisson.config.ClusterServersConfig;
|
||||
import org.redisson.config.SingleServerConfig;
|
||||
import org.redisson.spring.starter.RedissonAutoConfigurationCustomizer;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.ruoyi.common.tenant.core;
|
||||
package org.hzhub.common.tenant.core;
|
||||
|
||||
import org.ruoyi.common.mybatis.core.domain.BaseEntity;
|
||||
import org.hzhub.common.mybatis.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package org.ruoyi.common.tenant.core;
|
||||
package org.hzhub.common.tenant.core;
|
||||
|
||||
import org.ruoyi.common.core.constant.GlobalConstants;
|
||||
import org.ruoyi.common.redis.utils.RedisUtils;
|
||||
import org.ruoyi.common.satoken.core.dao.PlusSaTokenDao;
|
||||
import org.hzhub.common.core.constant.GlobalConstants;
|
||||
import org.hzhub.common.redis.utils.RedisUtils;
|
||||
import org.hzhub.common.satoken.core.dao.PlusSaTokenDao;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.ruoyi.common.tenant.exception;
|
||||
package org.hzhub.common.tenant.exception;
|
||||
|
||||
import org.ruoyi.common.core.exception.base.BaseException;
|
||||
import org.hzhub.common.core.exception.base.BaseException;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.ruoyi.common.tenant.handle;
|
||||
package org.hzhub.common.tenant.handle;
|
||||
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler;
|
||||
@@ -7,9 +7,9 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import net.sf.jsqlparser.expression.Expression;
|
||||
import net.sf.jsqlparser.expression.NullValue;
|
||||
import net.sf.jsqlparser.expression.StringValue;
|
||||
import org.ruoyi.common.core.utils.StringUtils;
|
||||
import org.ruoyi.common.tenant.helper.TenantHelper;
|
||||
import org.ruoyi.common.tenant.properties.TenantProperties;
|
||||
import org.hzhub.common.core.utils.StringUtils;
|
||||
import org.hzhub.common.tenant.helper.TenantHelper;
|
||||
import org.hzhub.common.tenant.properties.TenantProperties;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.ruoyi.common.tenant.handle;
|
||||
package org.hzhub.common.tenant.handle;
|
||||
|
||||
import com.baomidou.mybatisplus.core.plugins.InterceptorIgnoreHelper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.ruoyi.common.core.constant.GlobalConstants;
|
||||
import org.ruoyi.common.core.utils.StringUtils;
|
||||
import org.ruoyi.common.redis.handler.KeyPrefixHandler;
|
||||
import org.ruoyi.common.tenant.helper.TenantHelper;
|
||||
import org.hzhub.common.core.constant.GlobalConstants;
|
||||
import org.hzhub.common.core.utils.StringUtils;
|
||||
import org.hzhub.common.redis.handler.KeyPrefixHandler;
|
||||
import org.hzhub.common.tenant.helper.TenantHelper;
|
||||
|
||||
/**
|
||||
* 多租户redis缓存key前缀处理
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.ruoyi.common.tenant.helper;
|
||||
package org.hzhub.common.tenant.helper;
|
||||
|
||||
import cn.dev33.satoken.context.SaHolder;
|
||||
import cn.dev33.satoken.context.model.SaStorage;
|
||||
@@ -10,12 +10,12 @@ import com.baomidou.mybatisplus.core.plugins.InterceptorIgnoreHelper;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.ruoyi.common.core.constant.GlobalConstants;
|
||||
import org.ruoyi.common.core.utils.SpringUtils;
|
||||
import org.ruoyi.common.core.utils.StringUtils;
|
||||
import org.ruoyi.common.core.utils.reflect.ReflectUtils;
|
||||
import org.ruoyi.common.redis.utils.RedisUtils;
|
||||
import org.ruoyi.common.satoken.utils.LoginHelper;
|
||||
import org.hzhub.common.core.constant.GlobalConstants;
|
||||
import org.hzhub.common.core.utils.SpringUtils;
|
||||
import org.hzhub.common.core.utils.StringUtils;
|
||||
import org.hzhub.common.core.utils.reflect.ReflectUtils;
|
||||
import org.hzhub.common.redis.utils.RedisUtils;
|
||||
import org.hzhub.common.satoken.utils.LoginHelper;
|
||||
|
||||
import java.util.Stack;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.ruoyi.common.tenant.manager;
|
||||
package org.hzhub.common.tenant.manager;
|
||||
|
||||
import com.baomidou.mybatisplus.core.plugins.InterceptorIgnoreHelper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.ruoyi.common.core.constant.GlobalConstants;
|
||||
import org.ruoyi.common.core.utils.StringUtils;
|
||||
import org.ruoyi.common.redis.manager.PlusSpringCacheManager;
|
||||
import org.ruoyi.common.tenant.helper.TenantHelper;
|
||||
import org.hzhub.common.core.constant.GlobalConstants;
|
||||
import org.hzhub.common.core.utils.StringUtils;
|
||||
import org.hzhub.common.redis.manager.PlusSpringCacheManager;
|
||||
import org.hzhub.common.tenant.helper.TenantHelper;
|
||||
import org.springframework.cache.Cache;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.ruoyi.common.tenant.properties;
|
||||
package org.hzhub.common.tenant.properties;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
Reference in New Issue
Block a user