service

package
v0.0.0-...-a36e7e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 (*AuthService) SaveOTP

func (s *AuthService) SaveOTP(c context.Context, userID uint) (string, error)

func (*AuthService) SendOTPEmail

func (s *AuthService) SendOTPEmail(c context.Context, userID uint, otp string) error

func (*AuthService) Signup

func (*AuthService) VerifyOTP

func (s *AuthService) VerifyOTP(c context.Context, req dto.VerifyOTPRequest) (bool, error)

type IAuthService

type IAuthService interface {
	SaveOTP(context.Context, uint) (string, error)
	SendOTPEmail(context.Context, uint, string) error
	VerifyOTP(context.Context, dto.VerifyOTPRequest) (bool, error)
	Signup(c context.Context, req dto.SignupRequest) (*userModels.User, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL