Documentation ¶
Index ¶
- type AuthService
- func (s *AuthService) SaveOTP(c context.Context, userID uint) (string, error)
- func (s *AuthService) SendOTPEmail(c context.Context, userID uint, otp string) error
- func (s *AuthService) Signup(c context.Context, req dto.SignupRequest) (*userModels.User, error)
- func (s *AuthService) VerifyOTP(c context.Context, req dto.VerifyOTPRequest) (bool, error)
- type IAuthService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func New ¶
func New(conf *config.Config, repo repository.IAuthRepository, userRepo userRepository.IUserRepository, logger logging.Logger) *AuthService
func (*AuthService) SendOTPEmail ¶
func (*AuthService) Signup ¶
func (s *AuthService) Signup(c context.Context, req dto.SignupRequest) (*userModels.User, error)
func (*AuthService) VerifyOTP ¶
func (s *AuthService) VerifyOTP(c context.Context, req dto.VerifyOTPRequest) (bool, error)
Click to show internal directories.
Click to hide internal directories.