mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
✨ 新增设置默认打开图片模式功能
This commit is contained in:
@@ -34,4 +34,6 @@ public class DriveConfigDTO {
|
||||
|
||||
private StorageStrategyConfig storageStrategyConfig;
|
||||
|
||||
private boolean defaultSwitchToImgMode;
|
||||
|
||||
}
|
||||
@@ -43,4 +43,6 @@ public class SystemFrontConfigDTO {
|
||||
|
||||
private Boolean debugMode;
|
||||
|
||||
private Boolean defaultSwitchToImgMode;
|
||||
|
||||
}
|
||||
@@ -36,4 +36,6 @@ public class DriveConfig {
|
||||
|
||||
private Integer orderNum;
|
||||
|
||||
private Boolean defaultSwitchToImgMode;
|
||||
|
||||
}
|
||||
@@ -112,6 +112,10 @@ public class DriveConfigService {
|
||||
DriveConfigDTO driveConfigDTO = new DriveConfigDTO();
|
||||
|
||||
List<StorageConfig> storageConfigList = storageConfigRepository.findByDriveId(driveConfig.getId());
|
||||
Boolean defaultSwitchToImgMode = driveConfig.getDefaultSwitchToImgMode();
|
||||
if (defaultSwitchToImgMode == null) {
|
||||
driveConfig.setDefaultSwitchToImgMode(false);
|
||||
}
|
||||
BeanUtils.copyProperties(driveConfig, driveConfigDTO);
|
||||
|
||||
StorageStrategyConfig storageStrategyConfig = new StorageStrategyConfig();
|
||||
|
||||
Reference in New Issue
Block a user