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 NewCreateReservationUseCase ¶
func NewCreateReservationUseCase( reservationRepo repositories.ReservationRepository, userRepo repositories.UserRepository, planRepo repositories.PlanRepository, ) *CreateReservationUseCase
func (*CreateReservationUseCase) Execute ¶
func (u *CreateReservationUseCase) Execute( ctx context.Context, req *dto.CreateReservationRequest, ) (*dto.ReservationResponse, error)
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 ¶
func (u *GetSecretQuestionUseCase) Execute( ctx context.Context, userID string, ) (*dto.SecretQuestionResponse, error)
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 NewGetUserReservationsUseCase ¶
func NewGetUserReservationsUseCase( repo repositories.ReservationRepository, ) *GetUserReservationsUseCase
func (*GetUserReservationsUseCase) Execute ¶
func (uc *GetUserReservationsUseCase) Execute(ctx context.Context, userID string) ([]*dto.ReservationResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.