fix: get news by query category and tags filters

This commit is contained in:
ericprd
2025-03-07 00:55:50 +08:00
parent e3a9b67e28
commit 51b50a3132
10 changed files with 114 additions and 10 deletions
+5
View File
@@ -49,3 +49,8 @@ type NewsUpdate struct {
IsPremium bool `json:"is_premium"`
LiveAt time.Time `json:"live_at"`
}
type NewsFilter struct {
Tags []string
Category string
}