From c953778be063090dc4a526fe5ec49679d2b7c196 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Wed, 3 Jul 2024 08:50:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=9C=A8=E7=BA=BF=E8=80=83=E8=AF=95?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/exam/PaperController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }