mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
item function [wip]
This commit is contained in:
parent
4f9715ba93
commit
61ed9aabf9
27
storage/item.go
Normal file
27
storage/item.go
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user