feat: integrate OA activation workflows and business migration

This commit is contained in:
Yvan
2026-11-07 00:09:19 +08:00
parent 64aca495f2
commit 9caf5b1abc
47 changed files with 1831 additions and 152 deletions
+3
View File
@@ -332,6 +332,8 @@ func newViper(path string) *viper.Viper {
v.SetEnvPrefix("KRA")
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_"))
v.AutomaticEnv()
_ = v.BindEnv("business_oa.url")
_ = v.BindEnv("business_oa.key")
return v
}
@@ -385,6 +387,7 @@ func cloneConfig(value *Config) *Config {
return nil
}
copied := *value
copied.BusinessOA = clonePtr(value.BusinessOA)
copied.Server = clonePtr(value.Server)
if copied.Server != nil {
copied.Server.HTTP = clonePtr(value.Server.HTTP)