From e9e9c3005e0964a46f67c0432bc6e360432033ac Mon Sep 17 00:00:00 2001 From: NitiwatOwen Date: Mon, 1 Jan 2024 19:43:36 +0700 Subject: [PATCH] fix: fix --- internal/service/user/user.service.go | 2 +- pkg/service/user/user.service.go | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 pkg/service/user/user.service.go 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) -}