services

package
v0.0.0-...-04fd3b2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 1 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 struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(repository domain.UserRepository[domain.User]) *UserService

func (*UserService) CreateUser

func (s *UserService) CreateUser(user *domain.User) error

func (*UserService) DeleteUser

func (s *UserService) DeleteUser(id uint) error

func (*UserService) GetUserByID

func (s *UserService) GetUserByID(id uint) (*domain.User, error)

func (*UserService) UpdateUser

func (s *UserService) UpdateUser(user *domain.User) error

Jump to

Keyboard shortcuts

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