package com.ssj.service.kmt.service;

import com.ssj.bean.kmt.kmt.domain.KmtExerciseBook;
import com.ssj.bean.kmt.kmt.domain.KmtExerciseQuestion;
import com.ssj.framework.core.util.ResponseEntity;
import com.ssj.service.kmt.request.AuditingV1Request;

import java.util.List;

public interface KmtExerciseSubmitService {

    /**
     * 新版练习册提交接口
     * @param request
     * @param userId
     * @return
     */
    ResponseEntity submit2Auditing(AuditingV1Request request, String userId);

    /**
     * 更新数据库练习册，题目，知识点
     * @param questions
     * @param book
     * @param request
     */
    void updateBookAndQuestionsAndKnow(List<KmtExerciseQuestion> questions, KmtExerciseBook book, AuditingV1Request request);

    /**
     * 数据同步es
     * @param questions
     * @param questionIds
     */
    void updateEsQuestionAndKnow(List<KmtExerciseQuestion> questions, List<String> questionIds);
}
