重构数据引擎

This commit is contained in:
2026-05-29 18:39:32 +08:00
parent 3ced686cb5
commit 15db71b7ba
132 changed files with 2534 additions and 26198 deletions

View File

@@ -33,6 +33,9 @@ type DatasourcePlatform struct {
MaxRetries int `orm:"max_retries" json:"maxRetries" description:"最大重试次数"`
RetryDelayMs int `orm:"retry_delay_ms" json:"retryDelayMs" description:"重试延迟(毫秒)"`
// 自定义认证配置 (JSONB)
AuthConfig map[string]interface{} `orm:"auth_config" json:"authConfig" description:"自定义认证配置,支持各平台特有的认证方式"`
// 元数据
CreatedBy string `orm:"created_by" json:"createdBy" description:"创建人"`
CreatedAt *time.Time `orm:"created_at" json:"createdAt" description:"创建时间"`
@@ -60,6 +63,7 @@ type DatasourcePlatformCol struct {
RequestTimeoutMs string
MaxRetries string
RetryDelayMs string
AuthConfig string
CreatedBy string
CreatedAt string
UpdatedBy string
@@ -86,6 +90,7 @@ var DatasourcePlatformCols = DatasourcePlatformCol{
RequestTimeoutMs: "request_timeout_ms",
MaxRetries: "max_retries",
RetryDelayMs: "retry_delay_ms",
AuthConfig: "auth_config",
CreatedBy: "created_by",
CreatedAt: "created_at",
UpdatedBy: "updated_by",