Documentation
¶
Index ¶
- Variables
- func Init()
- type Feed
- type Group
- type Item
- func (i Item) Creates(items []*model.Item) error
- func (i Item) Delete(id uint) error
- func (i Item) DeleteByFeed(feedID uint) error
- func (i Item) Get(id uint) (*model.Item, error)
- func (i Item) List(filter ItemFilter, page, pageSize int) ([]*model.Item, int, error)
- func (i Item) Update(id uint, item *model.Item) error
- func (i Item) UpdateBookmark(id uint, bookmark *bool) error
- func (i Item) UpdateUnread(ids []uint, unread *bool) error
- type ItemFilter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("resource not exists") ErrDuplicatedKey = errors.New("exists duplicated key(s)") )
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (Item) DeleteByFeed ¶
func (Item) UpdateBookmark ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.