Skip to content

Commit

Permalink
feat: adding person domain layer schema
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeversiane committed Oct 20, 2024
1 parent 03970ae commit a85afbc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions internal/domain/person/controller.go
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}
}
16 changes: 16 additions & 0 deletions internal/domain/person/repository.go
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}
}
12 changes: 12 additions & 0 deletions internal/domain/person/service.go
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}
}

0 comments on commit a85afbc

Please sign in to comment.