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

import cn.com.qmth.examcloud.core.questions.api.bean.PaperK12Bean;
import cn.com.qmth.examcloud.question.commons.core.paper.DefaultPaper;

import java.util.Map;
import java.util.Set;

/**
 * @author weiwenhai
 * @date 2018.10.8
 * @company qmth
 * @description 试卷对象服务接口
 */
public interface PaperProviderService {

    /**
     * 根据id集合查询试题集合
     *
     * @param questionIds
     * @return
     */
    public String genPaper(Set<String> questionIds, Map<String, PaperK12Bean> map, String paperName, String orgId, String userName);

    /**
     * 根据试卷id查询试卷
     *
     * @param paperId
     * @return
     */
    public DefaultPaper findPaper(String paperId);

    /**
     * 制定考试试卷
     *
     * @return
     */
    public String examPaper(String orgId, String paperId, Long examId);


    /**
     * 根据考试Id查询试卷对象
     *
     * @param examId
     * @return
     */
    public DefaultPaper findExamPaper(String orgId, Long examId);

}
