feat: Implement core backend infrastructure including configuration management, SQLite database with team owners and app settings, and initial owner-related APIs and frontend components.

This commit is contained in:
2026-01-31 03:16:24 +08:00
parent 634b493524
commit f590fe0c7a
6 changed files with 810 additions and 20 deletions

View File

@@ -174,6 +174,9 @@ func InitFromDB() *Config {
cfg.MailServices = services
}
}
if v, _ := configDB.GetConfig("site_name"); v != "" {
cfg.SiteName = v
}
Global = cfg
return cfg
@@ -210,6 +213,10 @@ func SaveToDB() error {
configDB.SetConfig("mail_services", string(data))
}
if cfg.SiteName != "" {
configDB.SetConfig("site_name", cfg.SiteName)
}
return nil
}