feat: 重构数据中枢工作台与接入管理

- 新增统一的数据源、目录、纳管表与 Excel 处理后端能力

- 重建管理端数据中枢工作台并替换旧表管理页面

- 补充数据中枢迁移脚本、连接器底座与说明字段支持
This commit is contained in:
2026-04-02 18:55:31 +08:00
parent b6213d0933
commit 798effbd5b
117 changed files with 9739 additions and 1824 deletions

View File

@@ -0,0 +1,28 @@
package tech.easyflow.datacenter.security;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.symmetric.AES;
import org.springframework.stereotype.Component;
import java.nio.charset.StandardCharsets;
@Component
public class DatacenterCredentialCipher {
private static final String DEFAULT_KEY = "easyflow-datacenter-phase1-key";
private final AES aes = SecureUtil.aes(SecureUtil.sha256(DEFAULT_KEY).substring(0, 16).getBytes(StandardCharsets.UTF_8));
public String encrypt(String plainText) {
if (plainText == null || plainText.isBlank()) {
return null;
}
return aes.encryptHex(plainText);
}
public String decrypt(String cipherText) {
if (cipherText == null || cipherText.isBlank()) {
return null;
}
return aes.decryptStr(cipherText);
}
}