| | |
| | | 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; |
| | | import com.ycl.jxkg.domain.vo.student.wrong.WrongRequestVo; |
| | | import com.ycl.jxkg.domain.vo.student.wrong.WrongResponseVO; |
| | | import com.ycl.jxkg.service.WrongService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RequiredArgsConstructor |
| | | @RestController |
| | |
| | | public class WrongController extends BaseApiController { |
| | | private final WrongService wrongService; |
| | | |
| | | @PostMapping("/page") |
| | | public Result<List<DoQuestionVO>> 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)); |
| | | } |
| | | } |