fix: filter active in news

This commit is contained in:
ericprd
2025-03-20 13:13:28 +08:00
parent 8d7500610e
commit 24f0fe6efa
5 changed files with 33 additions and 8 deletions
+5
View File
@@ -51,7 +51,12 @@ type NewsUpdate struct {
LiveAt time.Time `json:"live_at"`
}
type Filter struct {
Category, Tags, Active string
}
type NewsFilter struct {
Tags []string
Category []string
Active string
}