usecases

package
v0.0.0-...-e754585 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 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 UserUseCases

type UserUseCases interface {
	// GetByID returns a user by its ID.
	GetByID(ID int64) (user entity.User, err error)
	// GetByEmail returns a user by its email.
	GetByEmail(email string) (user entity.User, err error)
	// Create creates a new user.
	Create(ID int64, name string, email string) (err error)
	// Update updates a user.
	Update(ID int64, name string, email string) (err error)
}

func NewUserUseCases

func NewUserUseCases(userRepo repository.UserRepository) (usecases UserUseCases, err error)

NewUserUseCases returns a new userUsecases instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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