重构数据引擎和报表引擎
This commit is contained in:
@@ -36,10 +36,10 @@ type DatasourcePlatform struct {
|
||||
// 自定义认证配置 (JSONB)
|
||||
AuthConfig map[string]interface{} `orm:"auth_config" json:"authConfig" description:"自定义认证配置,支持各平台特有的认证方式"`
|
||||
|
||||
// 元数据
|
||||
CreatedBy string `orm:"created_by" json:"createdBy" description:"创建人"`
|
||||
// 元数据(ORM tag 与数据库列名一致:creator/updater)
|
||||
CreatedBy string `orm:"creator" json:"createdBy" description:"创建人"`
|
||||
CreatedAt *time.Time `orm:"created_at" json:"createdAt" description:"创建时间"`
|
||||
UpdatedBy string `orm:"updated_by" json:"updatedBy" description:"更新人"`
|
||||
UpdatedBy string `orm:"updater" json:"updatedBy" description:"更新人"`
|
||||
UpdatedAt *time.Time `orm:"updated_at" json:"updatedAt" description:"更新时间"`
|
||||
Version int `orm:"version" json:"version" description:"版本号(乐观锁)"`
|
||||
}
|
||||
@@ -64,9 +64,9 @@ type DatasourcePlatformCol struct {
|
||||
MaxRetries string
|
||||
RetryDelayMs string
|
||||
AuthConfig string
|
||||
CreatedBy string
|
||||
CreatedBy string // 对应 DB 列 creator
|
||||
CreatedAt string
|
||||
UpdatedBy string
|
||||
UpdatedBy string // 对应 DB 列 updater
|
||||
UpdatedAt string
|
||||
Version string
|
||||
}
|
||||
@@ -91,9 +91,9 @@ var DatasourcePlatformCols = DatasourcePlatformCol{
|
||||
MaxRetries: "max_retries",
|
||||
RetryDelayMs: "retry_delay_ms",
|
||||
AuthConfig: "auth_config",
|
||||
CreatedBy: "created_by",
|
||||
CreatedBy: "creator",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedBy: "updated_by",
|
||||
UpdatedBy: "updater",
|
||||
UpdatedAt: "updated_at",
|
||||
Version: "version",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user