feat:在线考试接口

pg_adapter
wangxy 9 months ago
parent 4cdb6bdb33
commit c953778be0

@ -52,14 +52,14 @@ public class PaperController extends BaseController {
@ApiOperation("试题详情") @ApiOperation("试题详情")
@PostMapping("/quDetail") @PostMapping("/quDetail")
@ResponseBody @ResponseBody
public AjaxResult quDetail(@Validated PaperQuQueryDTO reqDTO) { public AjaxResult quDetail(@RequestBody @Validated PaperQuQueryDTO reqDTO) {
return AjaxResult.success(paperManager.findQuDetail(reqDTO.getPaperId(), reqDTO.getQuId())); return AjaxResult.success(paperManager.findQuDetail(reqDTO.getPaperId(), reqDTO.getQuId()));
} }
@ApiOperation("保存答案") @ApiOperation("保存答案")
@PostMapping("/fillAnswer") @PostMapping("/fillAnswer")
@ResponseBody @ResponseBody
public AjaxResult fillAnswer(@Validated PaperAnswerDTO reqDTO) { public AjaxResult fillAnswer(@RequestBody @Validated PaperAnswerDTO reqDTO) {
return toAjax(paperManager.fillAnswer(reqDTO)); return toAjax(paperManager.fillAnswer(reqDTO));
} }

Loading…
Cancel
Save