service

package
v0.0.0-...-90663b7 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TournamentService

type TournamentService interface {
	Create(tournament *dto.TournamentCreationRequestDTO, user *dto.UserResponseDTO) (*dto.TournamentResponseDTO, error)
	Delete(shortName string, user *dto.UserResponseDTO) error
	GetByShortName(shortName string) (*dto.TournamentResponseDTO, error)
	List(after string, limit int) ([]dto.TournamentResponseDTO, error)
	ListByOwner(ownerID int64) ([]dto.TournamentResponseDTO, error)
	ListPast(count int) ([]dto.TournamentResponseDTO, error)
	ListUpcoming(count int) ([]dto.TournamentResponseDTO, error)
	Update(shortName string, request *dto.TournamentUpdateRequestDTO, user *dto.UserResponseDTO) (*dto.TournamentResponseDTO, error)
}

func NewTournamentService

func NewTournamentService(tournamentRepository repository.TournamentRepository, clock clock.Clock) TournamentService

type UserService

type UserService interface {
	Authenticate(request *dto.UserAuthenticationRequestDTO) (*dto.UserResponseDTO, error)
	Register(request *dto.UserRegistrationRequestDTO) (*dto.UserResponseDTO, error)
	Update(id int64, request *dto.UserUpdateRequestDTO) (*dto.UserResponseDTO, error)
	UpdatePassword(id int64, password string) (*dto.UserResponseDTO, error)
	ExistsByEmail(email string) (bool, error)
	GetById(id int64) (*dto.UserResponseDTO, error)
	GetAll() ([]dto.UserResponseDTO, error)
}

func NewUserService

func NewUserService(userRepository repository.UserRepository) UserService

Jump to

Keyboard shortcuts

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