diff --git a/internal/service/user/user.service.go b/internal/service/user/user.service.go index bc2e1eb..fe9036e 100644 --- a/internal/service/user/user.service.go +++ b/internal/service/user/user.service.go @@ -20,7 +20,7 @@ type serviceImpl struct { bcryptUtil utils.IBcryptUtil } -func NewService(repo userRepo.Repository, bcryptUtil utils.IBcryptUtil) *serviceImpl { +func NewService(repo userRepo.Repository, bcryptUtil utils.IBcryptUtil) proto.UserServiceServer { return &serviceImpl{repo: repo, bcryptUtil: bcryptUtil} } diff --git a/pkg/service/user/user.service.go b/pkg/service/user/user.service.go deleted file mode 100644 index 2ad1658..0000000 --- a/pkg/service/user/user.service.go +++ /dev/null @@ -1,12 +0,0 @@ -package user - -import ( - "github.com/isd-sgcu/johnjud-auth/internal/service/user" - "github.com/isd-sgcu/johnjud-auth/internal/utils" - userRepo "github.com/isd-sgcu/johnjud-auth/pkg/repository/user" - userProto "github.com/isd-sgcu/johnjud-go-proto/johnjud/auth/user/v1" -) - -func NewService(userRepository userRepo.Repository, bcryptUtil utils.IBcryptUtil) userProto.UserServiceServer { - return user.NewService(userRepository, bcryptUtil) -}