services

package
v0.0.0-...-78b8e57 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoginService

func NewLoginService(userRepository repositories.UserRepository, jwtAuth jwt.JwtAuth) *loginSvc

func NewUserService

func NewUserService(userRepository repositories.UserRepository) *userSvc

Types

type LoginService

type LoginService interface {
	LoginUser(ctx context.Context, user *domain.User) (string, *resterrors.RestErr)
}

type UserService

type UserService interface {
	FindAll(ctx context.Context, itemsPerPage, currentPage int) ([]*domain.User, *resterrors.RestErr)
	CreateUser(context.Context, *domain.User) (*domain.User, *resterrors.RestErr)
	FindUserById(ctx context.Context, userID string) (*domain.User, *resterrors.RestErr)
	UpdateUser(ctx context.Context, userID string, user *domain.User) (*domain.User, *resterrors.RestErr)
	DeleteUser(ctx context.Context, userID string) *resterrors.RestErr
}

Jump to

Keyboard shortcuts

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