services

package
v0.0.0-...-79875cf Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

type UserService interface {
	GetAll() ([]*models.User, error)
	GetByID(id uuid.UUID) (*models.User, error)
	Create(user *models.User) (*models.User, error)
	Update(user *models.User) error
	Delete(id uuid.UUID) error
}

func NewUserService

func NewUserService(userRepository repositories.UserRepository) UserService

type UserServiceImpl

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

func (*UserServiceImpl) Create

func (usi *UserServiceImpl) Create(user *models.User) (*models.User, error)

func (*UserServiceImpl) Delete

func (usi *UserServiceImpl) Delete(id uuid.UUID) error

func (*UserServiceImpl) GetAll

func (usi *UserServiceImpl) GetAll() ([]*models.User, error)

func (*UserServiceImpl) GetByID

func (usi *UserServiceImpl) GetByID(id uuid.UUID) (*models.User, error)

func (*UserServiceImpl) Update

func (usi *UserServiceImpl) Update(user *models.User) error

Jump to

Keyboard shortcuts

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