-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding person domain layer schema
- Loading branch information
1 parent
03970ae
commit a85afbc
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package person | ||
|
||
type personController struct { | ||
service PersonServiceInterface | ||
} | ||
|
||
type PersonControllerInterface interface { | ||
} | ||
|
||
func NewPersonController(service PersonServiceInterface) PersonControllerInterface { | ||
return &personController{service} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package person | ||
|
||
import ( | ||
"github.com/felipeversiane/go-otel/internal/infra/services/database" | ||
) | ||
|
||
type personRepository struct { | ||
db database.DatabaseInterface | ||
} | ||
|
||
type PersonRepositoryInterface interface { | ||
} | ||
|
||
func NewPersonRepository(db database.DatabaseInterface) PersonRepositoryInterface { | ||
return &personRepository{db} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package person | ||
|
||
type personService struct { | ||
repository PersonRepositoryInterface | ||
} | ||
|
||
type PersonServiceInterface interface { | ||
} | ||
|
||
func NewPersonService(repository PersonRepositoryInterface) PersonServiceInterface { | ||
return &personService{repository} | ||
} |