feat: refactoring

This commit is contained in:
Elton Minetto
2020-06-30 11:16:55 -03:00
parent 3cd31fe900
commit 74d7384f47
20 changed files with 85 additions and 94 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func main() {
}
defer db.Close()
repo := book.NewMySQLRepoRepository(db)
service := book.NewService(repo)
service := book.NewRepository(repo)
all, err := service.Search(query)
if err != nil {
log.Fatal(err)