refactor(data): mybatis-plus => mp,mybatis-flex => mf

This commit is contained in:
2024-08-29 19:47:56 +08:00
parent 784a56fd4f
commit 5e0eea2ed8
47 changed files with 64 additions and 64 deletions

View File

@@ -206,11 +206,11 @@ continew-starter.web:
### 数据访问模块 ### 数据访问模块
| 模块名称 | 模块说明 | | 模块名称 | 模块说明 |
| ---------------------------------- | --------------------- | |----------------------------| --------------------- |
| continew-starter-data-core | 数据访问核心模块 | | continew-starter-data-core | 数据访问核心模块 |
| continew-starter-data-mybatis-plus | MyBatis Plus 自动配置 | | continew-starter-data-mp | MyBatis Plus 自动配置 |
| continew-starter-data-mybatis-flex | MyBatis Flex 自动配置 | | continew-starter-data-mf | MyBatis Flex 自动配置 |
### 认证模块 ### 认证模块

View File

@@ -9,7 +9,7 @@
<version>${revision}</version> <version>${revision}</version>
</parent> </parent>
<artifactId>continew-starter-data-mybatis-flex</artifactId> <artifactId>continew-starter-data-mf</artifactId>
<description>ContiNew Starter 数据访问模块 - MyBatis Flex</description> <description>ContiNew Starter 数据访问模块 - MyBatis Flex</description>
<dependencies> <dependencies>

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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 org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import top.continew.starter.core.constant.PropertiesConstants; import top.continew.starter.core.constant.PropertiesConstants;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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.DbType;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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.DbType;
import com.mybatisflex.core.dialect.DialectFactory; import com.mybatisflex.core.dialect.DialectFactory;
@@ -30,8 +30,8 @@ import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
import top.continew.starter.core.constant.PropertiesConstants; import top.continew.starter.core.constant.PropertiesConstants;
import top.continew.starter.core.util.GeneralPropertySourceFactory; import top.continew.starter.core.util.GeneralPropertySourceFactory;
import top.continew.starter.data.mybatis.flex.datapermission.DataPermissionDialect; import top.continew.starter.data.mf.datapermission.DataPermissionDialect;
import top.continew.starter.data.mybatis.flex.datapermission.DataPermissionFilter; import top.continew.starter.data.mf.datapermission.DataPermissionFilter;
/** /**
* MyBatis Flex 自动配置 * MyBatis Flex 自动配置

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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 cn.hutool.core.util.ClassUtil;
import com.mybatisflex.core.query.QueryWrapper; import com.mybatisflex.core.query.QueryWrapper;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.flex.base; package top.continew.starter.data.mf.base;
import java.io.Serializable; import java.io.Serializable;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.flex.datapermission; package top.continew.starter.data.mf.datapermission;
import java.lang.annotation.*; import java.lang.annotation.*;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.flex.datapermission; package top.continew.starter.data.mf.datapermission;
import org.aspectj.lang.annotation.*; import org.aspectj.lang.annotation.*;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.flex.datapermission; package top.continew.starter.data.mf.datapermission;
import java.util.Set; import java.util.Set;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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 cn.hutool.core.util.StrUtil;
import com.mybatisflex.core.dialect.impl.CommonsDialectImpl; import com.mybatisflex.core.dialect.impl.CommonsDialectImpl;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.flex.datapermission; package top.continew.starter.data.mf.datapermission;
/** /**
* 数据权限过滤器接口 * 数据权限过滤器接口

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.flex.datapermission; package top.continew.starter.data.mf.datapermission;
/** /**
* 数据权限枚举 * 数据权限枚举

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.flex.service; package top.continew.starter.data.mf.service;
/** /**
* 通用业务接口 * 通用业务接口

View File

@@ -14,11 +14,11 @@
* limitations under the License. * 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.core.util.ClassUtils;
import top.continew.starter.data.mybatis.flex.base.BaseMapper; import top.continew.starter.data.mf.base.BaseMapper;
import top.continew.starter.data.mybatis.flex.service.IService; import top.continew.starter.data.mf.service.IService;
/** /**
* 通用业务实现类 * 通用业务实现类

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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.collection.CollUtil;
import cn.hutool.core.text.CharSequenceUtil; import cn.hutool.core.text.CharSequenceUtil;

View File

@@ -0,0 +1 @@
top.continew.starter.data.mf.autoconfigure.MybatisFlexAutoConfiguration

View File

@@ -9,7 +9,7 @@
<version>${revision}</version> <version>${revision}</version>
</parent> </parent>
<artifactId>continew-starter-data-mybatis-plus</artifactId> <artifactId>continew-starter-data-mp</artifactId>
<description>ContiNew Starter 数据访问模块 - MyBatis Plus</description> <description>ContiNew Starter 数据访问模块 - MyBatis Plus</description>
<dependencies> <dependencies>

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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 org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import top.continew.starter.core.constant.PropertiesConstants; import top.continew.starter.core.constant.PropertiesConstants;

View File

@@ -14,12 +14,12 @@
* limitations under the License. * 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 com.baomidou.mybatisplus.annotation.DbType;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty; 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 扩展配置属性 * MyBatis Plus 扩展配置属性

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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 cn.hutool.extra.spring.SpringUtil;
import com.baomidou.mybatisplus.autoconfigure.MybatisPlusPropertiesCustomizer; import com.baomidou.mybatisplus.autoconfigure.MybatisPlusPropertiesCustomizer;
@@ -38,10 +38,10 @@ import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
import top.continew.starter.core.constant.PropertiesConstants; import top.continew.starter.core.constant.PropertiesConstants;
import top.continew.starter.core.util.GeneralPropertySourceFactory; import top.continew.starter.core.util.GeneralPropertySourceFactory;
import top.continew.starter.data.mybatis.plus.autoconfigure.idgenerator.MyBatisPlusIdGeneratorConfiguration; import top.continew.starter.data.mp.autoconfigure.idgenerator.MyBatisPlusIdGeneratorConfiguration;
import top.continew.starter.data.mybatis.plus.datapermission.DataPermissionFilter; import top.continew.starter.data.mp.datapermission.DataPermissionFilter;
import top.continew.starter.data.mybatis.plus.datapermission.DataPermissionHandlerImpl; import top.continew.starter.data.mp.datapermission.DataPermissionHandlerImpl;
import top.continew.starter.data.mybatis.plus.handler.MybatisBaseEnumTypeHandler; import top.continew.starter.data.mp.handler.MybatisBaseEnumTypeHandler;
/** /**
* MyBatis Plus 自动配置 * MyBatis Plus 自动配置

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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 com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import me.ahoo.cosid.snowflake.SnowflakeId; import me.ahoo.cosid.snowflake.SnowflakeId;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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 cn.hutool.core.net.NetUtil;
import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator; import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;

View File

@@ -14,9 +14,9 @@
* limitations under the License. * 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 生成器配置属性 * MyBatis ID 生成器配置属性

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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 cn.hutool.core.util.ClassUtil;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.plus.datapermission; package top.continew.starter.data.mp.datapermission;
import java.lang.annotation.*; import java.lang.annotation.*;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.plus.datapermission; package top.continew.starter.data.mp.datapermission;
import java.util.Set; import java.util.Set;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.plus.datapermission; package top.continew.starter.data.mp.datapermission;
/** /**
* 数据权限过滤器接口 * 数据权限过滤器接口

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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 cn.hutool.core.text.CharSequenceUtil;
import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.baomidou.mybatisplus.core.toolkit.StringUtils;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.plus.datapermission; package top.continew.starter.data.mp.datapermission;
/** /**
* 数据权限枚举 * 数据权限枚举

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.plus.enums; package top.continew.starter.data.mp.enums;
/** /**
* MyBatis ID 生成器类型枚举 * MyBatis ID 生成器类型枚举

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum; import com.baomidou.mybatisplus.annotation.IEnum;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package top.continew.starter.data.mybatis.plus.service; package top.continew.starter.data.mp.service;
/** /**
* 通用业务接口 * 通用业务接口

View File

@@ -14,13 +14,13 @@
* limitations under the License. * 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 cn.hutool.core.util.ClassUtil;
import top.continew.starter.core.util.ReflectUtils; import top.continew.starter.core.util.ReflectUtils;
import top.continew.starter.core.util.validate.CheckUtils; import top.continew.starter.core.util.validate.CheckUtils;
import top.continew.starter.data.mybatis.plus.base.BaseMapper; import top.continew.starter.data.mp.base.BaseMapper;
import top.continew.starter.data.mybatis.plus.service.IService; import top.continew.starter.data.mp.service.IService;
import java.io.Serializable; import java.io.Serializable;
import java.lang.reflect.Field; import java.lang.reflect.Field;

View File

@@ -14,7 +14,7 @@
* limitations under the License. * 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.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@@ -0,0 +1 @@
top.continew.starter.data.mp.autoconfigure.MybatisPlusAutoConfiguration

View File

@@ -1 +0,0 @@
top.continew.starter.data.mybatis.flex.autoconfigure.MybatisFlexAutoConfiguration

View File

@@ -1 +0,0 @@
top.continew.starter.data.mybatis.plus.autoconfigure.MybatisPlusAutoConfiguration

View File

@@ -15,8 +15,8 @@
<modules> <modules>
<module>continew-starter-data-core</module> <module>continew-starter-data-core</module>
<module>continew-starter-data-mybatis-plus</module> <module>continew-starter-data-mp</module>
<module>continew-starter-data-mybatis-flex</module> <module>continew-starter-data-mf</module>
</modules> </modules>
<dependencies> <dependencies>

View File

@@ -373,14 +373,14 @@
<!-- 数据访问模块 - MyBatis Plus --> <!-- 数据访问模块 - MyBatis Plus -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-data-mybatis-plus</artifactId> <artifactId>continew-starter-data-mp</artifactId>
<version>${revision}</version> <version>${revision}</version>
</dependency> </dependency>
<!-- 数据访问模块 - MyBatis Flex --> <!-- 数据访问模块 - MyBatis Flex -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-data-mybatis-flex</artifactId> <artifactId>continew-starter-data-mf</artifactId>
<version>${revision}</version> <version>${revision}</version>
</dependency> </dependency>

View File

@@ -22,7 +22,7 @@
<!-- 数据访问模块 - MyBatis Flex --> <!-- 数据访问模块 - MyBatis Flex -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-data-mybatis-flex</artifactId> <artifactId>continew-starter-data-mf</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@@ -33,9 +33,9 @@ import org.springframework.transaction.annotation.Transactional;
import top.continew.starter.core.constant.StringConstants; import top.continew.starter.core.constant.StringConstants;
import top.continew.starter.core.util.ReflectUtils; import top.continew.starter.core.util.ReflectUtils;
import top.continew.starter.core.util.validate.ValidationUtils; import top.continew.starter.core.util.validate.ValidationUtils;
import top.continew.starter.data.mybatis.flex.base.BaseMapper; import top.continew.starter.data.mf.base.BaseMapper;
import top.continew.starter.data.mybatis.flex.util.QueryWrapperHelper; import top.continew.starter.data.mf.util.QueryWrapperHelper;
import top.continew.starter.data.mybatis.flex.service.impl.ServiceImpl; import top.continew.starter.data.mf.service.impl.ServiceImpl;
import top.continew.starter.extension.crud.annotation.TreeField; import top.continew.starter.extension.crud.annotation.TreeField;
import top.continew.starter.extension.crud.model.query.PageQuery; import top.continew.starter.extension.crud.model.query.PageQuery;
import top.continew.starter.extension.crud.model.query.SortQuery; import top.continew.starter.extension.crud.model.query.SortQuery;

View File

@@ -22,7 +22,7 @@
<!-- 数据访问模块 - MyBatis Plus --> <!-- 数据访问模块 - MyBatis Plus -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-data-mybatis-plus</artifactId> <artifactId>continew-starter-data-mp</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@@ -37,9 +37,9 @@ import top.continew.starter.core.util.ClassUtils;
import top.continew.starter.core.util.ReflectUtils; import top.continew.starter.core.util.ReflectUtils;
import top.continew.starter.core.util.validate.CheckUtils; import top.continew.starter.core.util.validate.CheckUtils;
import top.continew.starter.core.util.validate.ValidationUtils; import top.continew.starter.core.util.validate.ValidationUtils;
import top.continew.starter.data.mybatis.plus.base.BaseMapper; import top.continew.starter.data.mp.base.BaseMapper;
import top.continew.starter.data.mybatis.plus.service.impl.ServiceImpl; import top.continew.starter.data.mp.service.impl.ServiceImpl;
import top.continew.starter.data.mybatis.plus.util.QueryWrapperHelper; import top.continew.starter.data.mp.util.QueryWrapperHelper;
import top.continew.starter.extension.crud.annotation.DictField; import top.continew.starter.extension.crud.annotation.DictField;
import top.continew.starter.extension.crud.annotation.TreeField; import top.continew.starter.extension.crud.annotation.TreeField;
import top.continew.starter.extension.crud.model.entity.BaseIdDO; import top.continew.starter.extension.crud.model.entity.BaseIdDO;