feat: domain finished

This commit is contained in:
Elton Minetto
2020-06-25 11:46:45 -03:00
commit 3db4550ee0
47 changed files with 2646 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package book
import (
"time"
"github.com/eminetto/clean-architecture-go-v2/domain/entity"
)
func NewFixtureBook() *Book {
return &Book{
ID: entity.NewID(),
Title: "I Am Ozzy",
Author: "Ozzy Osbourne",
Pages: 294,
Quantity: 1,
CreatedAt: time.Now(),
}
}