usecase

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthService

func NewAuthService(db *gorm.DB) auth.Repository

Types

type AuthService

type AuthService struct {
	*gorm.DB
}

func (AuthService) Login

func (a AuthService) Login(email string) (models.User, error)

func (AuthService) Register

func (a AuthService) Register(dto auth.RegisterDto) (models.User, error)

Jump to

Keyboard shortcuts

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