Documentation ¶
Index ¶
- type UserService
- func (s *UserService) Authenticate(ctx context.Context, username, password string) (models.User, error)
- func (s *UserService) GetAllUsers(ctx context.Context) ([]models.User, error)
- func (s *UserService) GetUserByID(ctx context.Context, userID string) (models.User, error)
- func (s *UserService) RegisterUser(ctx context.Context, user *models.User) error
- func (s *UserService) UpdateProfile(ctx context.Context, userID string, updateData map[string]interface{}) error
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 (*UserService) GetAllUsers ¶
func (*UserService) GetUserByID ¶
func (*UserService) RegisterUser ¶
func (*UserService) UpdateProfile ¶
Click to show internal directories.
Click to hide internal directories.