| | |
| | | package com.ycl.jxkg.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.ycl.jxkg.base.Result; |
| | | import com.ycl.jxkg.domain.entity.ExamPaper; |
| | | import com.ycl.jxkg.domain.entity.User; |
| | | import com.ycl.jxkg.domain.form.ExamPaperForm; |
| | | import com.ycl.jxkg.domain.vo.admin.exam.ExamPaperEditRequestVO; |
| | | import com.ycl.jxkg.domain.vo.admin.exam.ExamPaperPageRequestVO; |
| | | import com.ycl.jxkg.domain.vo.admin.exam.ExamResponseVO; |
| | | import com.ycl.jxkg.domain.vo.admin.exam.QuestionExportVO; |
| | | import com.ycl.jxkg.domain.vo.student.dashboard.PaperFilter; |
| | | import com.ycl.jxkg.domain.vo.student.dashboard.PaperInfo; |
| | | import com.ycl.jxkg.domain.vo.student.exam.ExamPaperPageVO; |
| | | import com.github.pagehelper.PageInfo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | public interface ExamPaperService extends IService<ExamPaper> { |
| | | |
| | | PageInfo<ExamPaper> page(ExamPaperPageRequestVO requestVM); |
| | | PageInfo<ExamResponseVO> page(ExamPaperPageRequestVO requestVM); |
| | | |
| | | PageInfo<ExamPaper> taskExamPage(ExamPaperPageRequestVO requestVM); |
| | | // PageInfo<ExamPaper> taskExamPage(ExamPaperPageRequestVO requestVM); |
| | | |
| | | PageInfo<ExamPaper> studentPage(ExamPaperPageVO requestVM); |
| | | |
| | | ExamPaper savePaperFromVM(ExamPaperEditRequestVO examPaperEditRequestVO, User user); |
| | | // ExamPaper savePaperFromVM(ExamPaperEditRequestVO examPaperEditRequestVO, User user); |
| | | |
| | | ExamPaperEditRequestVO examPaperToVM(Integer id); |
| | | |
| | |
| | | * @return |
| | | */ |
| | | List<ExamPaper> myExamPaper(Integer paperType); |
| | | |
| | | Result addPaper(ExamPaperForm form); |
| | | |
| | | Result updateExamPaper(ExamPaperForm form); |
| | | |
| | | /** |
| | | * 下载导入试卷模板 |
| | | * @param response 响应 |
| | | */ |
| | | void importTemplate(HttpServletResponse response); |
| | | |
| | | /** |
| | | * 导出试卷 |
| | | * @param query 条件 |
| | | * @param response 响应 |
| | | */ |
| | | void export(QuestionExportVO query, HttpServletResponse response); |
| | | |
| | | /** |
| | | * 导入试卷 |
| | | * @param file 文件 |
| | | * @return 操作结果 |
| | | */ |
| | | Result importPaper(MultipartFile file, ExamPaperForm form); |
| | | } |