| | |
| | | import com.ycl.jxkg.vo.student.exam.ExamPaperPageResponseVO; |
| | | import com.ycl.jxkg.vo.student.exam.ExamPaperPageVO; |
| | | import com.github.pagehelper.PageInfo; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.ApplicationEventPublisher; |
| | |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | @RequiredArgsConstructor |
| | | @RestController("StudentExamPaperController") |
| | | @RequestMapping(value = "/api/student/exam/paper") |
| | | public class ExamPaperController extends BaseApiController { |
| | |
| | | private final ExamPaperService examPaperService; |
| | | private final ExamPaperAnswerService examPaperAnswerService; |
| | | private final ApplicationEventPublisher eventPublisher; |
| | | |
| | | @Autowired |
| | | public ExamPaperController(ExamPaperService examPaperService, ExamPaperAnswerService examPaperAnswerService, ApplicationEventPublisher eventPublisher) { |
| | | this.examPaperService = examPaperService; |
| | | this.examPaperAnswerService = examPaperAnswerService; |
| | | this.eventPublisher = eventPublisher; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/select/{id}", method = RequestMethod.POST) |
| | | public Result<ExamPaperEditRequestVO> select(@PathVariable Integer id) { |