From 12b7bf2629926c8acbd451f48aa815a2fb59fa50 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期三, 13 十一月 2024 11:51:17 +0800 Subject: [PATCH] 优化错题详情 --- src/main/java/com/ycl/jxkg/controller/student/WrongController.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/controller/student/WrongController.java b/src/main/java/com/ycl/jxkg/controller/student/WrongController.java index cb2d596..2ee691d 100644 --- a/src/main/java/com/ycl/jxkg/controller/student/WrongController.java +++ b/src/main/java/com/ycl/jxkg/controller/student/WrongController.java @@ -1,5 +1,6 @@ package com.ycl.jxkg.controller.student; +import com.github.pagehelper.PageInfo; import com.ycl.jxkg.base.BaseApiController; import com.ycl.jxkg.base.Result; import com.ycl.jxkg.domain.vo.DoQuestionVO; @@ -19,9 +20,9 @@ public class WrongController extends BaseApiController { private final WrongService wrongService; - @PostMapping("/page") - public Result<WrongResponseVO> page(@RequestBody WrongRequestVo model) { + @PostMapping("/list") + public Result<PageInfo<WrongResponseVO>> list(@RequestBody WrongRequestVo model) { model.setUserId(getCurrentUser().getId()); - return Result.ok(wrongService.page(model)); + return Result.ok(wrongService.list(model)); } } -- Gitblit v1.8.0