Files
bibliomane/internal/api/mapper.go
Arthur Lefebvre 8432902df1 Second commit
added few test, first api to add book
2025-09-23 17:16:48 +02:00

10 lines
198 B
Go

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}
}