services

package
v0.0.0-...-01a1143 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 8 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(repo *repositories.UserRepository) *UserService

func (*UserService) Authenticate

func (s *UserService) Authenticate(ctx context.Context, username, password string) (models.User, error)

func (*UserService) GetAllUsers

func (s *UserService) GetAllUsers(ctx context.Context) ([]models.User, error)

func (*UserService) GetUserByID

func (s *UserService) GetUserByID(ctx context.Context, userID string) (models.User, error)

func (*UserService) RegisterUser

func (s *UserService) RegisterUser(ctx context.Context, user *models.User) error

func (*UserService) UpdateProfile

func (s *UserService) UpdateProfile(ctx context.Context, userID string, updateData map[string]interface{}) error

Jump to

Keyboard shortcuts

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