Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAuthUseCase ¶
type UserFlashcardUseCase ¶
type UserFlashcardUseCase interface { GetSets(ctx context.Context, userID int) ([]dto.FlashcardSet, error) GetSetById(ctx context.Context, userID int, setID int) (*dto.FlashcardSet, error) GetCards(ctx context.Context, setID int, userID int) ([]dto.Flashcard, error) CreateSet(ctx context.Context, userID int) (*dto.FlashcardSet, error) CreateCard(ctx context.Context, userID int, setID int) (*dto.Flashcard, error) UpdateCard(ctx context.Context, userID int, req *dto.Flashcard) error UpdateSet(ctx context.Context, userID int, req *dto.FlashcardSet) error DeleteCard(ctx context.Context, userID, setID, cardID int) error DeleteSet(ctx context.Context, userID, setID int) error }
type UserSessionUseCase ¶
type UserUseCase ¶
type UserUseCase interface { UserFlashcardUseCase UserSessionUseCase UserAuthUseCase }
func NewUserUseCase ¶
func NewUserUseCase(store repository.Store, flashcardConfig config.FlashcardConfig, jwtProvider util.JwtProvider, bycryptProvider util.BycryptProvider) UserUseCase
Click to show internal directories.
Click to hide internal directories.