item function [wip]

This commit is contained in:
Nazar Kanaev 2020-06-21 23:52:28 +01:00 committed by nkanaev
parent 4f9715ba93
commit 61ed9aabf9

27
storage/item.go Normal file
View File

@ -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
}