xiangpei
2025-05-14 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403
src/main/java/com/mindskip/xzs/controller/student/SelfPracticeController.java
@@ -36,4 +36,37 @@
        return selfPracticeService.remove(ids);
    }
    /**
     * 开始练习
     *
     * @param id 练习id
     * @return
     */
    @PostMapping("/start/{id}")
    public RestResponse startPractice(@PathVariable("id") Integer id) {
        return selfPracticeService.startPractice(id);
    }
    /**
     * 开始看题
     *
     * @param id 练习id
     * @return
     */
    @PostMapping("/start/look/{id}")
    public RestResponse startLook(@PathVariable("id") Integer id) {
        return selfPracticeService.startLook(id);
    }
    /**
     * 随机一道题
     *
     * @param id
     * @return
     */
    @GetMapping("/random/{id}")
    public RestResponse randomOneQuestion(@PathVariable("id") Integer id) {
        return selfPracticeService.randomOneQuestion(id);
    }
}