From 61ed9aabf93a19990cd7f90a369ea364c6a90a49 Mon Sep 17 00:00:00 2001 From: Nazar Kanaev Date: Sun, 21 Jun 2020 23:52:28 +0100 Subject: [PATCH] item function [wip] --- storage/item.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 storage/item.go diff --git a/storage/item.go b/storage/item.go new file mode 100644 index 0000000..b233348 --- /dev/null +++ b/storage/item.go @@ -0,0 +1,27 @@ +package storage + +type ItemStatus int + +const ( + UNREAD ItemStatus = 0 + READ ItemStatus = 1 + STARRED ItemStatus = 2 +) + +type Item struct { + Id int64 + FeedId int64 + Title string + Link string + Description string + Content string + Author string + Date int64 + DateUpdated int64 + Status ItemStatus + Image string +} + +func (s *Storage) CreateItems(items []Item) bool { + return true +}