package com.syzton.sunread.service.exam; import java.util.Map; import javassist.NotFoundException; import org.apache.poi.ss.usermodel.Sheet; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import com.syzton.sunread.dto.exam.SubjectQuestionWithBookName; import com.syzton.sunread.model.exam.ObjectiveQuestion; import com.syzton.sunread.model.exam.SubjectiveQuestion; public interface SubjectiveQuestionService { public Page<SubjectiveQuestion> findAll(Pageable pageable) throws NotFoundException; public SubjectiveQuestion findById(Long id) throws NotFoundException; public SubjectiveQuestion add(SubjectiveQuestion added); public SubjectiveQuestion deleteById(Long id) throws NotFoundException; public SubjectiveQuestion update(SubjectiveQuestion updated) throws NotFoundException; public Page<SubjectiveQuestion> searchSubjectiveQuestionByTopic(String topic,Pageable pageable); public Map<Integer,String> batchSaveOrUpdateSubjectQuestionFromExcel(Sheet sheet); }