mirror of
https://gitee.com/lxp135/minio-plus.git
synced 2025-12-06 08:58:25 +08:00
缩略图为调用时懒加载,删除是否启用缩略图配置项。
This commit is contained in:
parent
500b485c85
commit
33cf6db82c
@ -97,15 +97,6 @@ public class MinioPlusProperties {
|
||||
@Setter
|
||||
public static class Thumbnail {
|
||||
|
||||
/**
|
||||
* 是否开启缩略图。默认为true
|
||||
*
|
||||
* @since 2024-06-14 15:47:46
|
||||
* feature 缩略图懒生成
|
||||
*/
|
||||
@Deprecated
|
||||
private boolean enable = true;
|
||||
|
||||
/**
|
||||
* 缩略图尺寸,默认为300
|
||||
*/
|
||||
|
||||
@ -254,9 +254,6 @@ public class StorageServiceImpl implements StorageService {
|
||||
// 取得存储路径
|
||||
String storagePath = CommonUtil.getPathByDate();
|
||||
|
||||
// 是否存在缩略图
|
||||
Boolean isPreview = properties.getThumbnail().isEnable() && StorageBucketEnums.IMAGE.getCode().equals(storageBucket);
|
||||
|
||||
// 创建文件元数据信息
|
||||
FileMetadataInfoSaveDTO fileMetadataInfoSaveDTO = new FileMetadataInfoSaveDTO();
|
||||
fileMetadataInfoSaveDTO.setFileKey(key);
|
||||
@ -271,7 +268,7 @@ public class StorageServiceImpl implements StorageService {
|
||||
fileMetadataInfoSaveDTO.setIsFinished(true);
|
||||
fileMetadataInfoSaveDTO.setIsPart(false);
|
||||
fileMetadataInfoSaveDTO.setPartNumber(0);
|
||||
fileMetadataInfoSaveDTO.setIsPreview(isPreview);
|
||||
fileMetadataInfoSaveDTO.setIsPreview(Boolean.FALSE);
|
||||
fileMetadataInfoSaveDTO.setIsPrivate(isPrivate);
|
||||
fileMetadataInfoSaveDTO.setCreateUser(userId);
|
||||
fileMetadataInfoSaveDTO.setUpdateUser(userId);
|
||||
|
||||
2
pom.xml
2
pom.xml
@ -48,7 +48,7 @@
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
|
||||
<revision>1.0.4</revision>
|
||||
<revision>1.0.5</revision>
|
||||
<spring-boot2.version>2.6.13</spring-boot2.version>
|
||||
<spring-boot3.version>3.3.2</spring-boot3.version>
|
||||
<spring-boot.version>${spring-boot2.version}</spring-boot.version>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user