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.
Click to show internal directories.
Click to hide internal directories.