feat: implement metadata-based alias management for wiki pages

Made-with: Cursor
This commit is contained in:
wizardchen
2026-04-08 22:15:38 +08:00
parent 233c398d7a
commit d9cf4b7aa9
7 changed files with 46 additions and 8 deletions
+2
View File
@@ -63,6 +63,8 @@ type WikiPage struct {
Content string `json:"content" gorm:"type:text"`
// One-line summary for index listing
Summary string `json:"summary" gorm:"type:text"`
// Alternate names, abbreviations, acronyms or translated names
Aliases StringArray `json:"aliases" gorm:"type:json"`
// References to source knowledge IDs that contributed to this page
SourceRefs StringArray `json:"source_refs" gorm:"type:json"`
// Slugs of pages that link TO this page (backlinks)