feat: add handlers - WIP
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package presenter
|
||||
|
||||
import (
|
||||
"github.com/eminetto/clean-architecture-go-v2/domain/entity"
|
||||
)
|
||||
|
||||
//Book data
|
||||
type Book struct {
|
||||
ID entity.ID `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Author string `json:"author"`
|
||||
Pages int `json:"pages"`
|
||||
Quantity int `json:"quantity"`
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package presenter
|
||||
|
||||
import (
|
||||
"github.com/eminetto/clean-architecture-go-v2/domain/entity"
|
||||
)
|
||||
|
||||
//User data
|
||||
type User struct {
|
||||
ID entity.ID `json:"id"`
|
||||
Email string `json:"email"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"`
|
||||
}
|
||||
Reference in New Issue
Block a user