Skip to content

Commit

Permalink
refactor(data): mybatis-plus => mp,mybatis-flex => mf
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Aug 29, 2024
1 parent 784a56f commit 5e0eea2
Show file tree
Hide file tree
Showing 47 changed files with 64 additions and 64 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ continew-starter.web:
### 数据访问模块
| 模块名称 | 模块说明 |
| ---------------------------------- | --------------------- |
| continew-starter-data-core | 数据访问核心模块 |
| continew-starter-data-mybatis-plus | MyBatis Plus 自动配置 |
| continew-starter-data-mybatis-flex | MyBatis Flex 自动配置 |
| 模块名称 | 模块说明 |
|----------------------------| --------------------- |
| continew-starter-data-core | 数据访问核心模块 |
| continew-starter-data-mp | MyBatis Plus 自动配置 |
| continew-starter-data-mf | MyBatis Flex 自动配置 |
### 认证模块
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>continew-starter-data-mybatis-flex</artifactId>
<artifactId>continew-starter-data-mf</artifactId>
<description>ContiNew Starter 数据访问模块 - MyBatis Flex</description>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.autoconfigure;
package top.continew.starter.data.mf.autoconfigure;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import top.continew.starter.core.constant.PropertiesConstants;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.autoconfigure;
package top.continew.starter.data.mf.autoconfigure;

import com.mybatisflex.core.dialect.DbType;
import org.springframework.boot.context.properties.ConfigurationProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.autoconfigure;
package top.continew.starter.data.mf.autoconfigure;

import com.mybatisflex.core.dialect.DbType;
import com.mybatisflex.core.dialect.DialectFactory;
Expand All @@ -30,8 +30,8 @@
import org.springframework.transaction.annotation.EnableTransactionManagement;
import top.continew.starter.core.constant.PropertiesConstants;
import top.continew.starter.core.util.GeneralPropertySourceFactory;
import top.continew.starter.data.mybatis.flex.datapermission.DataPermissionDialect;
import top.continew.starter.data.mybatis.flex.datapermission.DataPermissionFilter;
import top.continew.starter.data.mf.datapermission.DataPermissionDialect;
import top.continew.starter.data.mf.datapermission.DataPermissionFilter;

/**
* MyBatis Flex 自动配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.base;
package top.continew.starter.data.mf.base;

import cn.hutool.core.util.ClassUtil;
import com.mybatisflex.core.query.QueryWrapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.base;
package top.continew.starter.data.mf.base;

import java.io.Serializable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.datapermission;
package top.continew.starter.data.mf.datapermission;

import java.lang.annotation.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.datapermission;
package top.continew.starter.data.mf.datapermission;

import org.aspectj.lang.annotation.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.datapermission;
package top.continew.starter.data.mf.datapermission;

import java.util.Set;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.datapermission;
package top.continew.starter.data.mf.datapermission;

import cn.hutool.core.util.StrUtil;
import com.mybatisflex.core.dialect.impl.CommonsDialectImpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.datapermission;
package top.continew.starter.data.mf.datapermission;

/**
* 数据权限过滤器接口
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.datapermission;
package top.continew.starter.data.mf.datapermission;

/**
* 数据权限枚举
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.service;
package top.continew.starter.data.mf.service;

/**
* 通用业务接口
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.service.impl;
package top.continew.starter.data.mf.service.impl;

import top.continew.starter.core.util.ClassUtils;
import top.continew.starter.data.mybatis.flex.base.BaseMapper;
import top.continew.starter.data.mybatis.flex.service.IService;
import top.continew.starter.data.mf.base.BaseMapper;
import top.continew.starter.data.mf.service.IService;

/**
* 通用业务实现类
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.flex.util;
package top.continew.starter.data.mf.util;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.text.CharSequenceUtil;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
top.continew.starter.data.mf.autoconfigure.MybatisFlexAutoConfiguration
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>${revision}</version>
</parent>

<artifactId>continew-starter-data-mybatis-plus</artifactId>
<artifactId>continew-starter-data-mp</artifactId>
<description>ContiNew Starter 数据访问模块 - MyBatis Plus</description>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.autoconfigure;
package top.continew.starter.data.mp.autoconfigure;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import top.continew.starter.core.constant.PropertiesConstants;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.autoconfigure;
package top.continew.starter.data.mp.autoconfigure;

import com.baomidou.mybatisplus.annotation.DbType;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import top.continew.starter.data.mybatis.plus.autoconfigure.idgenerator.MyBatisPlusIdGeneratorProperties;
import top.continew.starter.data.mp.autoconfigure.idgenerator.MyBatisPlusIdGeneratorProperties;

/**
* MyBatis Plus 扩展配置属性
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.autoconfigure;
package top.continew.starter.data.mp.autoconfigure;

import cn.hutool.extra.spring.SpringUtil;
import com.baomidou.mybatisplus.autoconfigure.MybatisPlusPropertiesCustomizer;
Expand All @@ -38,10 +38,10 @@
import org.springframework.transaction.annotation.EnableTransactionManagement;
import top.continew.starter.core.constant.PropertiesConstants;
import top.continew.starter.core.util.GeneralPropertySourceFactory;
import top.continew.starter.data.mybatis.plus.autoconfigure.idgenerator.MyBatisPlusIdGeneratorConfiguration;
import top.continew.starter.data.mybatis.plus.datapermission.DataPermissionFilter;
import top.continew.starter.data.mybatis.plus.datapermission.DataPermissionHandlerImpl;
import top.continew.starter.data.mybatis.plus.handler.MybatisBaseEnumTypeHandler;
import top.continew.starter.data.mp.autoconfigure.idgenerator.MyBatisPlusIdGeneratorConfiguration;
import top.continew.starter.data.mp.datapermission.DataPermissionFilter;
import top.continew.starter.data.mp.datapermission.DataPermissionHandlerImpl;
import top.continew.starter.data.mp.handler.MybatisBaseEnumTypeHandler;

/**
* MyBatis Plus 自动配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.autoconfigure.idgenerator;
package top.continew.starter.data.mp.autoconfigure.idgenerator;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import me.ahoo.cosid.snowflake.SnowflakeId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.autoconfigure.idgenerator;
package top.continew.starter.data.mp.autoconfigure.idgenerator;

import cn.hutool.core.net.NetUtil;
import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.autoconfigure.idgenerator;
package top.continew.starter.data.mp.autoconfigure.idgenerator;

import top.continew.starter.data.mybatis.plus.enums.MyBatisPlusIdGeneratorType;
import top.continew.starter.data.mp.enums.MyBatisPlusIdGeneratorType;

/**
* MyBatis ID 生成器配置属性
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.base;
package top.continew.starter.data.mp.base;

import cn.hutool.core.util.ClassUtil;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.datapermission;
package top.continew.starter.data.mp.datapermission;

import java.lang.annotation.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.datapermission;
package top.continew.starter.data.mp.datapermission;

import java.util.Set;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.datapermission;
package top.continew.starter.data.mp.datapermission;

/**
* 数据权限过滤器接口
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.datapermission;
package top.continew.starter.data.mp.datapermission;

import cn.hutool.core.text.CharSequenceUtil;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.datapermission;
package top.continew.starter.data.mp.datapermission;

/**
* 数据权限枚举
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.enums;
package top.continew.starter.data.mp.enums;

/**
* MyBatis ID 生成器类型枚举
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.handler;
package top.continew.starter.data.mp.handler;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.service;
package top.continew.starter.data.mp.service;

/**
* 通用业务接口
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.service.impl;
package top.continew.starter.data.mp.service.impl;

import cn.hutool.core.util.ClassUtil;
import top.continew.starter.core.util.ReflectUtils;
import top.continew.starter.core.util.validate.CheckUtils;
import top.continew.starter.data.mybatis.plus.base.BaseMapper;
import top.continew.starter.data.mybatis.plus.service.IService;
import top.continew.starter.data.mp.base.BaseMapper;
import top.continew.starter.data.mp.service.IService;

import java.io.Serializable;
import java.lang.reflect.Field;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.starter.data.mybatis.plus.util;
package top.continew.starter.data.mp.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
top.continew.starter.data.mp.autoconfigure.MybatisPlusAutoConfiguration

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions continew-starter-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

<modules>
<module>continew-starter-data-core</module>
<module>continew-starter-data-mybatis-plus</module>
<module>continew-starter-data-mybatis-flex</module>
<module>continew-starter-data-mp</module>
<module>continew-starter-data-mf</module>
</modules>

<dependencies>
Expand Down
Loading

0 comments on commit 5e0eea2

Please sign in to comment.