feat: manage download articles entirely in Markdown

This commit is contained in:
2026-11-02 11:15:23 +08:00
parent bbe0aaf88e
commit bcc32d9626
9 changed files with 100 additions and 58 deletions
+7 -7
View File
@@ -13,14 +13,14 @@ type RelatedLink struct {
URL string `json:"url"`
}
type Download struct {
ID string `json:"id"`
Name string `json:"name"`
Category string `json:"category"`
Description string `json:"description"`
Files []DownloadFile `json:"files"`
ID string `json:"id"`
Name string `json:"name"`
Category string `json:"category"`
Description string `json:"description"`
// Read old settings and submissions without losing existing download links.
Version string `json:"version,omitempty"`
URL string `json:"url,omitempty"`
Files []DownloadFile `json:"files,omitempty"`
Version string `json:"version,omitempty"`
URL string `json:"url,omitempty"`
}
type DownloadFile struct {
Label string `json:"label"`