feat: domain finished
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user