services

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonAuthService

type CommonAuthService struct {
	AuthRepository  interfaces.AuthRepository
	UsersRepository interfaces.UsersRepository
}

func (*CommonAuthService) LoginUser

func (service *CommonAuthService) LoginUser(userData entities.LoginUserDTO) (string, error)

func (*CommonAuthService) RegisterUser

func (service *CommonAuthService) RegisterUser(userData entities.RegisterUserDTO) (int, error)

type CommonUsersService

type CommonUsersService struct {
	UsersRepository interfaces.UsersRepository
}

func (*CommonUsersService) GetAllUsers

func (service *CommonUsersService) GetAllUsers() ([]*entities.User, error)

func (*CommonUsersService) GetUserByID

func (service *CommonUsersService) GetUserByID(id int) (*entities.User, error)

Jump to

Keyboard shortcuts

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