优化结构
This commit is contained in:
@@ -3,8 +3,7 @@ package initialize
|
||||
import (
|
||||
"context"
|
||||
"kra/internal/biz/system"
|
||||
|
||||
"kra/internal/conf"
|
||||
"kra/internal/config"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
@@ -15,10 +14,7 @@ type Backend interface {
|
||||
IsInitialized(context.Context) (bool, error)
|
||||
InitializeDatabase(context.Context, *system.DatabaseConfig, func(context.Context, *gorm.DB) error) error
|
||||
PersistConfig(context.Context) error
|
||||
PersistAdminConfig(context.Context, []byte) error
|
||||
PersistRuntimeConfig(context.Context, []byte, []byte) error
|
||||
PersistRuntimeConfig(context.Context, *config.Config) error
|
||||
ReloadConfig(context.Context) error
|
||||
RuntimeValues() (*conf.Data, *conf.AdminBackend)
|
||||
RuntimeAdmin() *conf.AdminBackend
|
||||
RefreshDatabaseSources(*conf.Data) error
|
||||
Config() *config.Config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user