1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00

GET categories returns total_unread & feed_count

This commit is contained in:
kramanathan01 2023-06-19 09:50:08 -07:00 committed by Frédéric Guillot
parent b13c7e328a
commit fa3de272e8
4 changed files with 17 additions and 8 deletions

View file

@ -11,8 +11,8 @@ type Category struct {
Title string `json:"title"`
UserID int64 `json:"user_id"`
HideGlobally bool `json:"hide_globally"`
FeedCount int `json:"-"`
TotalUnread int `json:"-"`
FeedCount *int `json:"feed_count,omitempty"`
TotalUnread *int `json:"total_unread,omitempty"`
}
func (c *Category) String() string {