优化结构

This commit is contained in:
Yvan
2026-08-24 13:25:16 +08:00
parent 7a9a738c6a
commit 0b6b8ddf1a
72 changed files with 2475 additions and 1443 deletions
+3 -6
View File
@@ -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 {