aboutsummaryrefslogtreecommitdiffhomepage
path: root/model
diff options
context:
space:
mode:
authorGravatar Ben Brooks <ben@bbrks.me>2018-04-07 21:50:45 +0100
committerGravatar Frédéric Guillot <fred@kanboard.net>2018-04-07 13:50:45 -0700
commit538d08c16ce72dcbb8c6d041bdf9643cf4a16763 (patch)
treeabe1f5d44ed9c29c57335051d5313e02e5868426 /model
parent449020c1e8019ca3c7032be77eb533fc2eed04e6 (diff)
Add CommentsURL to entry
Diffstat (limited to 'model')
-rw-r--r--model/entry.go29
1 files changed, 15 insertions, 14 deletions
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.