diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/PaperController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/PaperController.java index 204770e..532babc 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/PaperController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/PaperController.java @@ -52,14 +52,14 @@ public class PaperController extends BaseController { @ApiOperation("试题详情") @PostMapping("/quDetail") @ResponseBody - public AjaxResult quDetail(@Validated PaperQuQueryDTO reqDTO) { + public AjaxResult quDetail(@RequestBody @Validated PaperQuQueryDTO reqDTO) { return AjaxResult.success(paperManager.findQuDetail(reqDTO.getPaperId(), reqDTO.getQuId())); } @ApiOperation("保存答案") @PostMapping("/fillAnswer") @ResponseBody - public AjaxResult fillAnswer(@Validated PaperAnswerDTO reqDTO) { + public AjaxResult fillAnswer(@RequestBody @Validated PaperAnswerDTO reqDTO) { return toAjax(paperManager.fillAnswer(reqDTO)); }