Add book list support in the database
This commit is contained in:
parent
f2b393a453
commit
c0a70a18e1
5 changed files with 298 additions and 1 deletions
|
@ -120,3 +120,31 @@ func (db *roDB) GetComment(bookID string) (string, error) {
|
|||
func (db *roDB) GetSubmission(submissionID string) (submission []Submission, err error) {
|
||||
return db.db.GetSubmission(submissionID)
|
||||
}
|
||||
|
||||
func (db *roDB) NewBookList(listID, title, username string, description []string) error {
|
||||
return errors.New("RO database")
|
||||
}
|
||||
|
||||
func (db *roDB) AddBookToList(listID, bookID string) error {
|
||||
return errors.New("RO database")
|
||||
}
|
||||
|
||||
func (db *roDB) DeleteBookFromList(listID, bookID string) error {
|
||||
return errors.New("RO database")
|
||||
}
|
||||
|
||||
func (db *roDB) UpdateBookList(listID, title string, description []string) error {
|
||||
return errors.New("RO database")
|
||||
}
|
||||
|
||||
func (db *roDB) GetBookList(listID string) (*BookList, error) {
|
||||
return db.db.GetBookList(listID)
|
||||
}
|
||||
|
||||
func (db *roDB) GetListsByUser(username string) ([]BookList, error) {
|
||||
return db.db.GetListsByUser(username)
|
||||
}
|
||||
|
||||
func (db *roDB) GetListsByBook(bookID string) ([]BookList, error) {
|
||||
return db.db.GetListsByBook(bookID)
|
||||
}
|
||||
|
|
Reference in a new issue