service

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 14 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 interface {
	Register(ctx context.Context, input dto.RegisterReq) (res *models.User, err error)
	Login(ctx context.Context, input dto.LoginReq) (res *dto.LoginRes, err error)
}

func NewAuthService

func NewAuthService(
	params AuthSrv,
) AuthService

type AuthSrv

type AuthSrv struct {
	Repo      repository.AuthRepository
	RepoCache cacheRepo.CacheRepository
	RepoUser  userRepo.UserRepository
	RepoLog   logRepo.LogRepository
	Cfg       *configs.Configs
	Logger    *logrus.Logger
}

func (*AuthSrv) Login

func (srv *AuthSrv) Login(ctx context.Context, input dto.LoginReq) (res *dto.LoginRes, err error)

func (*AuthSrv) Register

func (srv *AuthSrv) Register(ctx context.Context, input dto.RegisterReq) (res *models.User, err error)

Jump to

Keyboard shortcuts

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