mirror of
				https://github.com/continew-org/continew-starter.git
				synced 2025-10-31 22:57:19 +08:00 
			
		
		
		
	refactor(data): mybatis-plus => mp,mybatis-flex => mf
This commit is contained in:
		
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @@ -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 自动配置 | | ||||
|  | ||||
| ### 认证模块 | ||||
|  | ||||
|   | ||||
| @@ -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> | ||||
| @@ -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; | ||||
| @@ -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; | ||||
| @@ -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; | ||||
| @@ -30,8 +30,8 @@ import org.springframework.context.annotation.PropertySource; | ||||
| 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 自动配置 | ||||
| @@ -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; | ||||
| @@ -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; | ||||
| 
 | ||||
| @@ -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.*; | ||||
| 
 | ||||
| @@ -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.*; | ||||
| 
 | ||||
| @@ -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; | ||||
| 
 | ||||
| @@ -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; | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.starter.data.mybatis.flex.datapermission; | ||||
| package top.continew.starter.data.mf.datapermission; | ||||
| 
 | ||||
| /** | ||||
|  * 数据权限过滤器接口 | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.starter.data.mybatis.flex.datapermission; | ||||
| package top.continew.starter.data.mf.datapermission; | ||||
| 
 | ||||
| /** | ||||
|  * 数据权限枚举 | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.starter.data.mybatis.flex.service; | ||||
| package top.continew.starter.data.mf.service; | ||||
| 
 | ||||
| /** | ||||
|  * 通用业务接口 | ||||
| @@ -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; | ||||
| 
 | ||||
| /** | ||||
|  * 通用业务实现类 | ||||
| @@ -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; | ||||
| @@ -0,0 +1 @@ | ||||
| top.continew.starter.data.mf.autoconfigure.MybatisFlexAutoConfiguration | ||||
| @@ -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> | ||||
| @@ -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; | ||||
| @@ -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 扩展配置属性 | ||||
| @@ -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; | ||||
| @@ -38,10 +38,10 @@ import org.springframework.context.annotation.PropertySource; | ||||
| 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 自动配置 | ||||
| @@ -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; | ||||
| @@ -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; | ||||
| @@ -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 生成器配置属性 | ||||
| @@ -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; | ||||
| @@ -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.*; | ||||
| 
 | ||||
| @@ -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; | ||||
| 
 | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.starter.data.mybatis.plus.datapermission; | ||||
| package top.continew.starter.data.mp.datapermission; | ||||
| 
 | ||||
| /** | ||||
|  * 数据权限过滤器接口 | ||||
| @@ -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; | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.starter.data.mybatis.plus.datapermission; | ||||
| package top.continew.starter.data.mp.datapermission; | ||||
| 
 | ||||
| /** | ||||
|  * 数据权限枚举 | ||||
| @@ -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 生成器类型枚举 | ||||
| @@ -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; | ||||
| @@ -14,7 +14,7 @@ | ||||
|  * limitations under the License. | ||||
|  */ | ||||
| 
 | ||||
| package top.continew.starter.data.mybatis.plus.service; | ||||
| package top.continew.starter.data.mp.service; | ||||
| 
 | ||||
| /** | ||||
|  * 通用业务接口 | ||||
| @@ -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; | ||||
| @@ -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; | ||||
| @@ -0,0 +1 @@ | ||||
| top.continew.starter.data.mp.autoconfigure.MybatisPlusAutoConfiguration | ||||
| @@ -1 +0,0 @@ | ||||
| top.continew.starter.data.mybatis.flex.autoconfigure.MybatisFlexAutoConfiguration | ||||
| @@ -1 +0,0 @@ | ||||
| top.continew.starter.data.mybatis.plus.autoconfigure.MybatisPlusAutoConfiguration | ||||
| @@ -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> | ||||
|   | ||||
| @@ -373,14 +373,14 @@ | ||||
|             <!-- 数据访问模块 - MyBatis Plus --> | ||||
|             <dependency> | ||||
|                 <groupId>top.continew</groupId> | ||||
|                 <artifactId>continew-starter-data-mybatis-plus</artifactId> | ||||
|                 <artifactId>continew-starter-data-mp</artifactId> | ||||
|                 <version>${revision}</version> | ||||
|             </dependency> | ||||
|  | ||||
|             <!-- 数据访问模块 - MyBatis Flex --> | ||||
|             <dependency> | ||||
|                 <groupId>top.continew</groupId> | ||||
|                 <artifactId>continew-starter-data-mybatis-flex</artifactId> | ||||
|                 <artifactId>continew-starter-data-mf</artifactId> | ||||
|                 <version>${revision}</version> | ||||
|             </dependency> | ||||
|  | ||||
|   | ||||
| @@ -22,7 +22,7 @@ | ||||
|         <!-- 数据访问模块 - MyBatis Flex --> | ||||
|         <dependency> | ||||
|             <groupId>top.continew</groupId> | ||||
|             <artifactId>continew-starter-data-mybatis-flex</artifactId> | ||||
|             <artifactId>continew-starter-data-mf</artifactId> | ||||
|         </dependency> | ||||
|     </dependencies> | ||||
| </project> | ||||
| @@ -33,9 +33,9 @@ import org.springframework.transaction.annotation.Transactional; | ||||
| import top.continew.starter.core.constant.StringConstants; | ||||
| import top.continew.starter.core.util.ReflectUtils; | ||||
| import top.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.continew.starter.data.mybatis.flex.base.BaseMapper; | ||||
| import top.continew.starter.data.mybatis.flex.util.QueryWrapperHelper; | ||||
| import top.continew.starter.data.mybatis.flex.service.impl.ServiceImpl; | ||||
| import top.continew.starter.data.mf.base.BaseMapper; | ||||
| import top.continew.starter.data.mf.util.QueryWrapperHelper; | ||||
| import top.continew.starter.data.mf.service.impl.ServiceImpl; | ||||
| 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.SortQuery; | ||||
|   | ||||
| @@ -22,7 +22,7 @@ | ||||
|         <!-- 数据访问模块 - MyBatis Plus --> | ||||
|         <dependency> | ||||
|             <groupId>top.continew</groupId> | ||||
|             <artifactId>continew-starter-data-mybatis-plus</artifactId> | ||||
|             <artifactId>continew-starter-data-mp</artifactId> | ||||
|         </dependency> | ||||
|     </dependencies> | ||||
| </project> | ||||
| @@ -37,9 +37,9 @@ import top.continew.starter.core.util.ClassUtils; | ||||
| import top.continew.starter.core.util.ReflectUtils; | ||||
| import top.continew.starter.core.util.validate.CheckUtils; | ||||
| import top.continew.starter.core.util.validate.ValidationUtils; | ||||
| import top.continew.starter.data.mybatis.plus.base.BaseMapper; | ||||
| import top.continew.starter.data.mybatis.plus.service.impl.ServiceImpl; | ||||
| import top.continew.starter.data.mybatis.plus.util.QueryWrapperHelper; | ||||
| import top.continew.starter.data.mp.base.BaseMapper; | ||||
| import top.continew.starter.data.mp.service.impl.ServiceImpl; | ||||
| import top.continew.starter.data.mp.util.QueryWrapperHelper; | ||||
| import top.continew.starter.extension.crud.annotation.DictField; | ||||
| import top.continew.starter.extension.crud.annotation.TreeField; | ||||
| import top.continew.starter.extension.crud.model.entity.BaseIdDO; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user