feat: update news

This commit is contained in:
ericprd
2025-03-06 23:55:46 +08:00
parent 2046021e01
commit e3a9b67e28
17 changed files with 249 additions and 21 deletions
+11
View File
@@ -38,3 +38,14 @@ type News struct {
Author Staff `json:"author"`
}
type NewsUpdate struct {
ID string `json:"id"`
Title string `json:"title"`
Content string `json:"content"`
FeaturedImage string `json:"featured_image"`
Tags []string `json:"tags"`
Categories []string `json:"categories"`
IsPremium bool `json:"is_premium"`
LiveAt time.Time `json:"live_at"`
}