全局:简化 file 组件,融合到 infra 模块

This commit is contained in:
YunaiV 2024-02-28 19:17:18 +08:00
parent 746133226f
commit 2dc7376ec6
3 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,7 @@ public class FileConfigDO extends BaseDO {
@Override @Override
protected Object parse(String json) { protected Object parse(String json) {
FileClientConfig config = JsonUtils.parseObjectQuietly(json, new TypeReference<>() {}); FileClientConfig config = JsonUtils.parseObjectQuietly(json, new TypeReference<FileClientConfig>() {});
if (config != null) { if (config != null) {
return config; return config;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -5,10 +5,11 @@ import cn.hutool.core.util.IdUtil;
import cn.iocoder.yudao.framework.common.util.validation.ValidationUtils; import cn.iocoder.yudao.framework.common.util.validation.ValidationUtils;
import cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClient; import cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClient;
import cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig; import cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig;
import jakarta.validation.Validation;
import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import javax.validation.Validation;
public class S3FileClientTest { public class S3FileClientTest {
@Test @Test