| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.exam.entity.ExamPaper; |
| | | import org.springblade.modules.exam.entity.ExamSubjectChoices; |
| | | import org.springblade.modules.exam.service.ExamPaperService; |
| | | import org.springblade.modules.exam.vo.ExamPaperSubjectVO; |
| | | import org.springblade.modules.exam.vo.ExamPaperVO; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 随机生成考试题目 |
| | | */ |
| | | @GetMapping("/queryRandomSubject") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "考试题目绑定", notes = "传入exam") |
| | | public R<List> queryRandomSubject(@ApiParam(value = "主键集合") ExamPaper exam) { |
| | | List<ExamPaperSubjectVO> subject = examPaperService.queryRandomSubject(exam); |
| | | return R.data(subject); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 返回当前时间 |
| | | */ |
| | | @GetMapping("/getdate") |