Second commit

added few test, first api to add book
This commit is contained in:
2025-09-23 17:16:48 +02:00
parent 0457ca2011
commit 8432902df1
19 changed files with 298 additions and 123 deletions

9
internal/api/mapper.go Normal file
View 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}
}