package com.ssj.dao.conch.parents.dao;

import com.ssj.service.conch.parents.v1.dto.BookDTO;
import com.ssj.service.conch.parents.v2.dto.WrongBookKnowledgeDTO;
import com.ssj.service.conch.parents.v2.dto.WrongBookQuestionDTO;
import com.ssj.service.conch.parents.v2.request.WrongBookQuestionReq2;
import com.ssj.service.conch.parents.v2.request.WrongBookQuestionReq3;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;
public interface ParentsV1QueryDao {

	public List<Map<String, Object>> getChildEasemobList(String userId);
	
	public List<Map<String, Object>> parentsRoleList(String vipId);
	
	public List<Map<String, Object>> getOtherChildEasemobList(String userId);

	/**
	 * 根据孩子id查询孩子的教辅
	 * @param vipId 孩子id
	 */
    List<BookDTO> findChildBookList(String vipId);

    /**
     * 查询错题本知识点列表
     * @param vipId 孩子id
     * @param subject 科目
     * @param module 模块
     * @return
     */
    Page<WrongBookKnowledgeDTO> findWrongQuestionKnowledgePage(String vipId, String subject, String module, Pageable pageable);

    /**
     * 根据知识点id、孩子id查询错题
     * @param vipId 孩子id
     * @param knowHowDetailId 知识点id
     * @return
     */
    Page<WrongBookQuestionDTO> findWrongBookQuestionPage(String vipId, String knowHowDetailId, Pageable pageable);

	/**
	 * 根据知识点、孩子id查询错题
	 * @param req 知识点列表
	 */
	Page<WrongBookQuestionDTO> findWrongBookQuestionPage3(WrongBookQuestionReq3 req, Pageable pageable);

	/**
	 * 根据知识点、孩子id查询错题
	 * @param req 知识点列表
	 */
	Page<WrongBookQuestionDTO> findWrongBookQuestionPage2(WrongBookQuestionReq2 req, Pageable pageable);
}
