xiangpei
2024-07-08 d69a9a79a82c8a2f93efcd2b43b0a03ca57a031c
src/main/java/com/mindskip/xzs/controller/student/SelfPracticeController.java
@@ -31,17 +31,6 @@
        return selfPracticeService.page(vo);
    }
    /**
     * 获取所选课目下的题目数量
     *
     * @param subjectIds
     * @return
     */
    @PostMapping("/subject/questionNum")
    public RestResponse subjectQuestionNum(@RequestBody List<Integer> subjectIds) {
        return selfPracticeService.subjectQuestionNum(subjectIds);
    }
    @PostMapping("/remove")
    public RestResponse remove(@RequestBody @NotEmpty(message = "请选择要删除的数据") List<Integer> ids) {
        return selfPracticeService.remove(ids);
@@ -59,6 +48,17 @@
    }
    /**
     * 开始看题
     *
     * @param id 练习id
     * @return
     */
    @PostMapping("/start/look/{id}")
    public RestResponse startLook(@PathVariable("id") Integer id) {
        return selfPracticeService.startLook(id);
    }
    /**
     * 随机一道题
     *
     * @param id