service

package
v0.0.0-...-94c8c1a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUserDTO

type GetUserDTO struct {
	UserID string
}

type LoginDTO

type LoginDTO struct {
	Email, Password string
}

type RegisterDTO

type RegisterDTO struct {
	FirstName, LastName, Email, Password string
}

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(repo repository.UserRepository, hasher password.Hasher) UserService

func (UserService) GetUser

func (s UserService) GetUser(ctx context.Context, dto GetUserDTO) (*entity.User, error)

func (UserService) Login

func (s UserService) Login(ctx context.Context, dto LoginDTO) (*entity.User, error)

func (UserService) Register

func (s UserService) Register(ctx context.Context, dto RegisterDTO) error

Jump to

Keyboard shortcuts

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