Complete the document saving service

This commit is contained in:
2025-05-17 15:50:34 +08:00
parent bd0bbc9674
commit 1246166231
16 changed files with 1781 additions and 30 deletions

View File

@@ -35,9 +35,8 @@ func (p *DefaultConfigPathProvider) GetConfigPath() string {
// ConfigOption 配置服务选项
type ConfigOption struct {
Logger *log.LoggerService // 日志服务
PathProvider ConfigPath // 路径提供者
AutoSaveEnabled bool // 是否启用自动保存
Logger *log.LoggerService // 日志服务
PathProvider ConfigPath // 路径提供者
}
// ConfigService 提供配置管理功能
@@ -98,7 +97,6 @@ func NewConfigService(opt ...ConfigOption) *ConfigService {
// 创建存储
store := NewStore[models.AppConfig](StoreOption{
FilePath: configPath,
AutoSave: option.AutoSaveEnabled,
Logger: logger,
})