package com.qmth.distributed.print.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.distributed.print.business.bean.dto.BasicExamDto;
import com.qmth.distributed.print.business.bean.dto.ExamTaskDetailDto;
import com.qmth.distributed.print.business.bean.dto.ExamTaskPaperDto;
import com.qmth.distributed.print.business.bean.dto.ExamTaskPaperFileDto;
import com.qmth.teachcloud.common.entity.BasicExam;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 下载管理 服务类
 * </p>
 */
public interface DownloadService {
    IPage<ExamTaskDetailDto> page(Long semesterId, Long examId, Long orgId, String courseName, Integer pageNumber, Integer pageSize);

    void paperDownload(HttpServletResponse response, Long id) throws Exception;

    /**
     * 查找要下载的试卷文件内容
     * @param semesterId 学期id
     * @param examId 考试id
     * @param orgId 机构id
     * @param courseName 课程名称
     * @param idSet 命题任务idSet
     * @return 要下载的试卷文件内容集合
     */
    ExamTaskPaperDto findDownloadContent(Long schoolId, Long semesterId, Long examId, Long orgId, String courseName, Set<Long> idSet);
}
