Add hashes for each book
Check if the uploaded book is already in the library
This commit is contained in:
parent
154867c50c
commit
a1ee320eba
4 changed files with 41 additions and 5 deletions
|
@ -45,6 +45,10 @@ func (db *roDB) IsBookActive(id string) bool {
|
|||
return db.db.IsBookActive(id)
|
||||
}
|
||||
|
||||
func (db *roDB) ExistsBookHash(hash []byte) bool {
|
||||
return db.db.ExistsBookHash(hash)
|
||||
}
|
||||
|
||||
func (db *roDB) AddUser(name string, pass string) error {
|
||||
return errors.New("RO database")
|
||||
}
|
||||
|
|
Reference in a new issue