优化结构
This commit is contained in:
@@ -3,6 +3,7 @@ package initialize
|
||||
import (
|
||||
"context"
|
||||
"kra/internal/biz/system"
|
||||
"kra/internal/config"
|
||||
|
||||
datasystem "kra/internal/data/system"
|
||||
datatask "kra/internal/data/task"
|
||||
@@ -37,12 +38,8 @@ func (r *Repo) PersistConfig(ctx context.Context) error {
|
||||
return r.backend.PersistConfig(ctx)
|
||||
}
|
||||
|
||||
func (r *Repo) PersistAdminConfig(ctx context.Context, value []byte) error {
|
||||
return r.backend.PersistAdminConfig(ctx, value)
|
||||
}
|
||||
|
||||
func (r *Repo) PersistRuntimeConfig(ctx context.Context, data, admin []byte) error {
|
||||
return r.backend.PersistRuntimeConfig(ctx, data, admin)
|
||||
func (r *Repo) PersistRuntimeConfig(ctx context.Context, value *config.Config) error {
|
||||
return r.backend.PersistRuntimeConfig(ctx, value)
|
||||
}
|
||||
|
||||
func (r *Repo) ReloadConfig(ctx context.Context) error {
|
||||
|
||||
Reference in New Issue
Block a user