usecases

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonUseCases

type CommonUseCases struct {
	AuthService  interfaces.AuthService
	UsersService interfaces.UsersService
}

func (*CommonUseCases) GetAllUsers

func (useCases *CommonUseCases) GetAllUsers() ([]*entities.User, error)

func (*CommonUseCases) GetUserByID

func (useCases *CommonUseCases) GetUserByID(id int) (*entities.User, error)

func (*CommonUseCases) LoginUser

func (useCases *CommonUseCases) LoginUser(userData entities.LoginUserDTO) (string, error)

func (*CommonUseCases) RegisterUser

func (useCases *CommonUseCases) RegisterUser(userData entities.RegisterUserDTO) (int, error)

Jump to

Keyboard shortcuts

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