From 538d08c16ce72dcbb8c6d041bdf9643cf4a16763 Mon Sep 17 00:00:00 2001 From: Ben Brooks Date: Sat, 7 Apr 2018 21:50:45 +0100 Subject: Add CommentsURL to entry --- model/entry.go | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'model') diff --git a/model/entry.go b/model/entry.go index e08e844..2b46daa 100644 --- a/model/entry.go +++ b/model/entry.go @@ -20,20 +20,21 @@ const ( // Entry represents a feed item in the system. type Entry struct { - ID int64 `json:"id"` - UserID int64 `json:"user_id"` - FeedID int64 `json:"feed_id"` - Status string `json:"status"` - Hash string `json:"hash"` - Title string `json:"title"` - URL string `json:"url"` - Date time.Time `json:"published_at"` - Content string `json:"content"` - Author string `json:"author"` - Starred bool `json:"starred"` - Enclosures EnclosureList `json:"enclosures,omitempty"` - Feed *Feed `json:"feed,omitempty"` - Category *Category `json:"category,omitempty"` + ID int64 `json:"id"` + UserID int64 `json:"user_id"` + FeedID int64 `json:"feed_id"` + Status string `json:"status"` + Hash string `json:"hash"` + Title string `json:"title"` + URL string `json:"url"` + CommentsURL string `json:"comments"` + Date time.Time `json:"published_at"` + Content string `json:"content"` + Author string `json:"author"` + Starred bool `json:"starred"` + Enclosures EnclosureList `json:"enclosures,omitempty"` + Feed *Feed `json:"feed,omitempty"` + Category *Category `json:"category,omitempty"` } // Entries represents a list of entries. -- cgit v1.2.3