package cn.com.qmth.examcloud.core.questions.service;

import cn.com.qmth.examcloud.core.questions.dao.entity.Course;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface ExportPaperService {

    /**
     * 导出单个试卷，答案，机考数据包
     */
    public void exportPaperFile(String paperId, String serviceName, String exportContentList, HttpServletResponse response, String loginName, String examType, String psw) throws Exception;

    /**
     * 批量导出试卷，答案，机考数据包
     */
    public void exportPaperFiles(List<String> paperList, String serviceName, String exportContentList, HttpServletResponse response, String loginName, String examType) throws Exception;

    /**
     * 导出课程下的试题分布Excel(按课程)
     */
    public void downQuestionDistribute(String courseNo, HttpServletResponse response) throws IOException;

    /**
     * 导出课程下的试题分布Excel(按课程)
     */
    void downQuestionDistributes(List<Course> courses) throws IOException;

    /**
     * 导出课程下的试题分布Excel(按试卷)
     */
    public void downQuestionDistributeByPapers(String paperIds, HttpServletResponse response) throws IOException;

    /**
     * 导出原始的导入试卷
     */
    public void downOriginalPaper(String paperId, String loginName, HttpServletResponse response) throws Exception;

}