config 模块合并进 common 模块。

This commit is contained in:
刘小平 2024-06-05 13:59:33 +08:00
parent 8fdd409c40
commit c62c0808b4
15 changed files with 30 additions and 67 deletions

View File

@ -25,15 +25,14 @@
![模块划分](doc/image/模块划分.png)
* minio-plus-core核心业务逻辑包
* minio-plus-extension扩展包该包封装了Controller相关接口帮助项目使用时开箱即用
* minio-plus-common工具类包一些常用的工具类
* minio-plus-model实体类包
* minio-plus-config配置类包
* minio-plus-apiMinIO Plus 对外提供的能力接口定义,可以理解为 Service 层接口定义
* minio-plus-core核心业务逻辑包可以理解为 minio-plus-api 包的接口实现
* minio-plus-extension扩展包该包封装了Controller相关接口可以理解为 minio-plus-api 包的接口的 Controller 层封装,帮助项目使用时开箱即用
* minio-plus-common工具类、配置类包
* minio-plus-spring-boot-starter
* minio-plus-all-spring-boot-starter包含core、extension、common、model
* minio-plus-core-spring-boot-starter包含core、common、model
* minio-plus-model-spring-boot-starter只有model自身
* minio-plus-all-spring-boot-starter包含core、extension、common、api
* minio-plus-core-spring-boot-starter包含core、common、api
* minio-plus-api-spring-boot-starter只有api定义
* minio-plus-application
* minio-plus-application-mysql基于all-starter元数据使用MySQL数据库的示例工程

View File

@ -16,6 +16,20 @@
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!-- 自定义的配置类生成元数据信息 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@ -1,4 +1,4 @@
package org.liuxp.minioplus.config;
package org.liuxp.minioplus.common.config;
import org.springframework.context.annotation.Bean;

View File

@ -1,4 +1,4 @@
package org.liuxp.minioplus.config;
package org.liuxp.minioplus.common.config;
import lombok.AllArgsConstructor;
import lombok.Getter;

View File

@ -1,2 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.liuxp.minioplus.config.MinioPlusConfig
org.liuxp.minioplus.common.config.MinioPlusConfig

View File

@ -1,31 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
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>
<artifactId>minio-plus-parent</artifactId>
<groupId>org.liuxp</groupId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>minio-plus-config</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!-- 自定义的配置类生成元数据信息 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -36,10 +36,6 @@
<groupId>org.liuxp</groupId>
<artifactId>minio-plus-common</artifactId>
</dependency>
<dependency>
<groupId>org.liuxp</groupId>
<artifactId>minio-plus-config</artifactId>
</dependency>
<dependency>
<groupId>org.liuxp</groupId>
<artifactId>minio-plus-model</artifactId>

View File

@ -5,16 +5,11 @@ import cn.hutool.core.io.FileUtil;
import cn.hutool.core.lang.Pair;
import cn.hutool.core.text.CharSequenceUtil;
import cn.hutool.core.util.IdUtil;
import io.minio.CreateMultipartUploadResponse;
import io.minio.ListPartsResponse;
import io.minio.ObjectWriteResponse;
import io.minio.messages.Part;
import lombok.extern.slf4j.Slf4j;
import org.liuxp.minioplus.common.enums.MinioPlusErrorCode;
import org.liuxp.minioplus.common.enums.StorageBucketEnums;
import org.liuxp.minioplus.common.exception.MinioPlusException;
import org.liuxp.minioplus.config.MinioPlusProperties;
import org.liuxp.minioplus.core.common.context.ListPartsResultCopy;
import org.liuxp.minioplus.common.config.MinioPlusProperties;
import org.liuxp.minioplus.core.common.context.MultipartUploadCreateDTO;
import org.liuxp.minioplus.core.common.utils.MinioPlusCommonUtil;
import org.liuxp.minioplus.core.engine.StorageEngineService;

View File

@ -8,7 +8,7 @@ import cn.hutool.core.util.IdUtil;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;
import org.liuxp.minioplus.config.MinioPlusProperties;
import org.liuxp.minioplus.common.config.MinioPlusProperties;
import org.liuxp.minioplus.model.dto.FileMetadataInfoDTO;
import org.liuxp.minioplus.model.dto.FileMetadataInfoSaveDTO;
import org.liuxp.minioplus.model.dto.FileSaveDTO;

View File

@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.liuxp.minioplus.config.MinioPlusProperties;
import org.liuxp.minioplus.common.config.MinioPlusProperties;
import org.liuxp.minioplus.extension.context.Response;
import org.liuxp.minioplus.model.dto.FileCheckDTO;
import org.liuxp.minioplus.model.dto.FileCompleteDTO;

View File

@ -22,7 +22,7 @@
</dependency>
<dependency>
<groupId>org.liuxp</groupId>
<artifactId>minio-plus-config</artifactId>
<artifactId>minio-plus-common</artifactId>
</dependency>
</dependencies>

View File

@ -1,7 +1,7 @@
package org.liuxp.minioplus.s3.custom;
import lombok.extern.slf4j.Slf4j;
import org.liuxp.minioplus.config.MinioPlusProperties;
import org.liuxp.minioplus.common.config.MinioPlusProperties;
import org.liuxp.minioplus.s3.def.ListParts;
import org.liuxp.minioplus.s3.def.MinioS3Client;
import org.springframework.stereotype.Repository;

View File

@ -32,10 +32,6 @@
<groupId>org.liuxp</groupId>
<artifactId>minio-s3-api-definition</artifactId>
</dependency>
<dependency>
<groupId>org.liuxp</groupId>
<artifactId>minio-plus-config</artifactId>
</dependency>
<dependency>
<groupId>org.liuxp</groupId>
<artifactId>minio-plus-common</artifactId>

View File

@ -8,7 +8,7 @@ import io.minio.messages.Part;
import lombok.extern.slf4j.Slf4j;
import org.liuxp.minioplus.common.enums.MinioPlusErrorCode;
import org.liuxp.minioplus.common.exception.MinioPlusException;
import org.liuxp.minioplus.config.MinioPlusProperties;
import org.liuxp.minioplus.common.config.MinioPlusProperties;
import org.liuxp.minioplus.s3.def.ListParts;
import org.liuxp.minioplus.s3.def.MinioS3Client;
import org.springframework.stereotype.Repository;

View File

@ -37,7 +37,6 @@
<modules>
<module>minio-plus-application</module>
<module>minio-plus-common</module>
<module>minio-plus-config</module>
<module>minio-plus-core</module>
<module>minio-plus-extension</module>
<module>minio-plus-model</module>
@ -157,11 +156,6 @@
<artifactId>minio-plus-model</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.liuxp</groupId>
<artifactId>minio-plus-config</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.liuxp</groupId>
<artifactId>minio-plus-all-spring-boot-starter</artifactId>