| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.exam.entity.ExamPaper; |
| | | import org.springblade.modules.exam.service.ExamPaperService; |
| | | import org.springblade.modules.exam.vo.ExamPaperSubjectVO; |
| | | import org.springblade.modules.exam.vo.ExamPaperVO; |
| | | import org.springblade.modules.exam.wrapper.ExamPaperWrapper; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | public class ExamPaperController extends BladeController { |
| | | |
| | | private final ExamPaperService examPaperService; |
| | | |
| | | |
| | | /** |
| | | * 详情 |
| | |
| | | return R.status(temp); |
| | | } |
| | | |
| | | /** |
| | | * 考试题目绑定 |
| | | */ |
| | | @GetMapping("/setPagerSubject") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "考试题目绑定", notes = "传入exam") |
| | | public R setPagerSubject(@ApiParam(value = "主键集合") ExamPaper exam) { |
| | | |
| | | return R.status(true); |
| | | } |
| | | |
| | | /** |
| | | * 查询考试题目 |
| | | */ |
| | | @GetMapping("/queryPagerSubject") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "考试题目绑定", notes = "传入exam") |
| | | public R<ExamPaperSubjectVO> queryPagerSubject(@ApiParam(value = "主键集合") ExamPaper exam) { |
| | | ExamPaperSubjectVO subject = examPaperService.queryPagerSubject(exam); |
| | | return R.data(subject); |
| | | } |
| | | |
| | | } |