(CHORE): Updated and removed the last few backend components.
Just needed to clean up the VC a little bit.
This commit is contained in:
parent
b6a434ad2a
commit
780f5dfb84
@ -1,2 +0,0 @@
|
||||
package handlers
|
||||
|
||||
17
internal/app/service/user_service.go
Normal file
17
internal/app/service/user_service.go
Normal file
@ -0,0 +1,17 @@
|
||||
package service
|
||||
|
||||
import domain "github.com/haydenhargreaves/Potion/internal/domain/user"
|
||||
|
||||
// UserService implements the domain.UserService defined in the domain module.
|
||||
type UserService struct {
|
||||
userRepository domain.UserRepository
|
||||
}
|
||||
|
||||
// Compile-time check to ensure the UserService implements domain.UserService
|
||||
var _ domain.UserService = (*UserService)(nil)
|
||||
|
||||
// NewUserService creates a user service object which can be passed into the context. The service
|
||||
// requires a user repository which it will use to hit the database when needed.
|
||||
func NewUserService(userRepository domain.UserRepository) domain.UserService {
|
||||
return &UserService{userRepository: userRepository}
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package domain
|
||||
|
||||
type UserService interface {
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user