Versions in this module Expand all Collapse all v0 v0.0.4 Jun 26, 2024 v0.0.3 Jun 19, 2024 Changes in this version + type AuthService interface + Login func(ctx context.Context, input dto.LoginReq) (res *dto.LoginRes, err error) + Register func(ctx context.Context, input dto.RegisterReq) (res *models.User, err error) + func NewAuthService(params AuthSrv) AuthService + type AuthSrv struct + Cfg *configs.Configs + Logger *logrus.Logger + Repo repository.AuthRepository + RepoCache cacheRepo.CacheRepository + RepoLog logRepo.LogRepository + RepoUser userRepo.UserRepository + func (srv *AuthSrv) Login(ctx context.Context, input dto.LoginReq) (res *dto.LoginRes, err error) + func (srv *AuthSrv) Register(ctx context.Context, input dto.RegisterReq) (res *models.User, err error)