usecases

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateReservationUseCase

type CreateReservationUseCase struct {
	// contains filtered or unexported fields
}

func (*CreateReservationUseCase) Execute

type GetPlansUseCase

type GetPlansUseCase struct {
	// contains filtered or unexported fields
}

func NewGetPlansUseCase

func NewGetPlansUseCase(
	repo repositories.PlanRepository,
) *GetPlansUseCase

func (*GetPlansUseCase) Execute

func (uc *GetPlansUseCase) Execute(ctx context.Context, params *models.PlanSearchParams) ([]*dto.PlanResponse, error)

type GetSecretQuestionUseCase

type GetSecretQuestionUseCase struct {
	// contains filtered or unexported fields
}

func NewGetSecretQuestionUseCase

func NewGetSecretQuestionUseCase(
	userRepository repositories.UserRepository,
) *GetSecretQuestionUseCase

func (*GetSecretQuestionUseCase) Execute

type GetUserReservationsUseCase

type GetUserReservationsUseCase struct {
	// contains filtered or unexported fields
}

func (*GetUserReservationsUseCase) Execute

type LoginUseCase

type LoginUseCase struct {
	// contains filtered or unexported fields
}

func NewLoginUseCase

func NewLoginUseCase(authRepo repositories.AuthRepository, userRepo repositories.UserRepository) *LoginUseCase

func (*LoginUseCase) Execute

func (uc *LoginUseCase) Execute(ctx context.Context, userID, password string) (*dto.LoginResponse, error)

type SecretLoginUseCase

type SecretLoginUseCase struct {
	// contains filtered or unexported fields
}

func NewSecretLoginUseCase

func NewSecretLoginUseCase(
	userRepository repositories.UserRepository,
	authRepository repositories.AuthRepository,
) *SecretLoginUseCase

func (*SecretLoginUseCase) Execute

func (u *SecretLoginUseCase) Execute(
	ctx context.Context,
	userID string,
	secretAnswer string,
) (*dto.LoginResponse, error)

Jump to

Keyboard shortcuts

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