package top.tqx.demo_1.service;

import top.tqx.demo_1.dto.*;
import top.tqx.demo_1.entity.UserAnswer;

import java.util.List;

public interface UserAnswerService {

    boolean saveAnswer(UserAnswer userAnswer);

    void batchSaveAnswers(List<UserAnswer> userAnswers);

    UserAnswerQueryResponse queryUserAnswers(UserAnswerQueryRequest request);

    WrongQuestionListResponse getWrongQuestions(Long userId, WrongQuestionListRequest request);

    boolean toggleWrongQuestionCollection(Long userId, WrongQuestionCollectRequest request);

    ExamPaperGenerateResponse redoWrongQuestions(Long userId, WrongQuestionRedoRequest request);

    List<WrongQuestionListResponse.WrongQuestionItem> exportWrongQuestions(Long userId, WrongQuestionListRequest request);
    
    // 新增方法：检查题目是否已收藏
    boolean checkQuestionCollected(Long userId, String questionId);
}
