Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UseCase ¶
type UseCase struct { User UserUseCase // contains filtered or unexported fields }
func New ¶
func New( cfg config.UseCaseConfig, cache *cache.RedisCache, repo *repository.PgClientRepository, tx *tx_manager.TxManager, log *slog.Logger, ) *UseCase
type UserUseCase ¶
type UserUseCase interface { ValidateToken(ctx context.Context, tokenString string) (resp model.ValidateTokenResponse, err error) SignUp(ctx context.Context, request model.SignUpRequest) error SignIn(ctx context.Context, request model.SignInRequest) (token, role string, err error) GetUserDetails(ctx context.Context, clientID int64) (model.User, error) UpdateUserDetails(ctx context.Context, userInfo model.UpdateUserModel) error }
Click to show internal directories.
Click to hide internal directories.