usecases

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 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 GetUserInfoUseCase added in v1.0.0

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

func NewGetUserInfoUseCase added in v1.0.0

func NewGetUserInfoUseCase(userRepo repositories.UserRepository) *GetUserInfoUseCase

func (*GetUserInfoUseCase) Execute added in v1.0.0

func (u *GetUserInfoUseCase) Execute(ctx context.Context, userID string) (*dto.UserResponse, error)

type GetUserReservationsUseCase

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

func (*GetUserReservationsUseCase) Execute

type GetUsersUseCase added in v1.0.0

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

func NewGetUsersUseCase added in v1.0.0

func NewGetUsersUseCase(userRepository repositories.UserRepository) *GetUsersUseCase

func (*GetUsersUseCase) Execute added in v1.0.0

func (uc *GetUsersUseCase) Execute(ctx context.Context) ([]*dto.UserResponse, error)

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