renommage lassistanoque
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package user
|
||||
|
||||
import "trankilou.fr/lassistanoque/backend/internal/domain"
|
||||
|
||||
type Service struct {
|
||||
repo domain.UserRepository
|
||||
}
|
||||
|
||||
func NewService(repo domain.UserRepository) *Service {
|
||||
return &Service{
|
||||
repo,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Service) GetUser(id string) (*domain.User, error) {
|
||||
return s.repo.FindUser(id)
|
||||
}
|
||||
Reference in New Issue
Block a user