Keep count of downladed/viewed books
This commit is contained in:
parent
68ffe6cf5b
commit
71d975c2f7
7 changed files with 109 additions and 91 deletions
|
@ -24,9 +24,10 @@ type DB interface {
|
|||
AddNews(text string) error
|
||||
AddRawNews(text string, date time.Time) error
|
||||
GetNews(num int, days int) (news []New, err error)
|
||||
AddStats(stats interface{}) error
|
||||
GetVisitedBooks() (books []Book, err error)
|
||||
GetDownloadedBooks() (books []Book, err error)
|
||||
IncViews(ID string) error
|
||||
IncDownloads(ID string) error
|
||||
GetVisitedBooks(num int) (books []Book, err error)
|
||||
GetDownloadedBooks(num int) (books []Book, err error)
|
||||
GetTags() ([]string, error)
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue