✨ Add extension management service
This commit is contained in:
@@ -22,6 +22,9 @@ const (
|
||||
CurrentAppConfigVersion = "1.0.0"
|
||||
// CurrentKeyBindingConfigVersion 当前快捷键配置版本
|
||||
CurrentKeyBindingConfigVersion = "1.0.0"
|
||||
|
||||
CurrentExtensionConfigVersion = "1.0.0"
|
||||
|
||||
// BackupFilePattern 备份文件名模式
|
||||
BackupFilePattern = "%s.backup.%s.json"
|
||||
|
||||
@@ -323,3 +326,9 @@ func NewKeyBindingMigrationService(logger *log.LoggerService, pathManager *PathM
|
||||
return NewConfigMigrationService[*models.KeyBindingConfig](
|
||||
logger, pathManager, "keybindings", CurrentKeyBindingConfigVersion, pathManager.GetKeybindsPath())
|
||||
}
|
||||
|
||||
// NewExtensionMigrationService 创建扩展配置迁移服务
|
||||
func NewExtensionMigrationService(logger *log.LoggerService, pathManager *PathManager) *ConfigMigrationService[*models.ExtensionSettings] {
|
||||
return NewConfigMigrationService[*models.ExtensionSettings](
|
||||
logger, pathManager, "extensions", CurrentExtensionConfigVersion, pathManager.GetExtensionsPath())
|
||||
}
|
||||
|
Reference in New Issue
Block a user