Second commit
added few test, first api to add book
This commit is contained in:
9
internal/api/mapper.go
Normal file
9
internal/api/mapper.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package api
|
||||
|
||||
import "git.artlef.fr/PersonalLibraryManager/internal/model"
|
||||
|
||||
func (b bookPostCreate) toBook() model.Book {
|
||||
return model.Book{Title: b.Title,
|
||||
Author: b.Author,
|
||||
Rating: b.Rating}
|
||||
}
|
||||
Reference in New Issue
Block a user