users

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateUser(registrationApp domain.RegistrationApp) (*domain.User, error)
	GetByUserID(userID uint) (*domain.UserApp, error)
	GetByUser(user *domain.User) (*domain.UserApp, error)
	UpdateUserProfile(userID uint, updatedProfile domain.RegistrationApp) (*domain.User, error)
	ChangePassword(userID uint, oldPassword string, newPassword string) error
	ChangePasswordNoChecks(userID uint, newPassword string) error
	ResetPassword(email string) error
	UpdateLastActiveDate(userID uint)
	PostAnswer(userID uint, attempt domain.ProblemAttemptApp) (*domain.AttemptResultApp, error)
	GetAlbum(userId uint) (*domain.AlbumApp, error)
	GetProblemAttemptsByUser(userId uint, problemId uint) (*domain.ProblemAttemptsByUserApp, error)
}

func NewService

func NewService(database *db.Database, mailer mailer.Mailer) Service

Jump to

Keyboard shortcuts

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