feat: SEO change history
This commit is contained in:
@@ -41,3 +41,13 @@ func (s *Service) SaveTypeSetting(_ context.Context, db *gorm.DB, row models.Typ
|
||||
DoUpdates: clause.AssignmentColumns([]string{"inject", "title_template", "description_template", "robots"}),
|
||||
}).Create(&row).Error
|
||||
}
|
||||
|
||||
// TypeSettingValues are a type settings row's values for history.
|
||||
func TypeSettingValues(row models.TypeSetting) map[string]any {
|
||||
return map[string]any{
|
||||
"inject": row.Inject,
|
||||
"title_template": row.TitleTemplate,
|
||||
"description_template": row.DescriptionTemplate,
|
||||
"robots": row.Robots,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user