fuliqi
2024-06-18 c46f49af9e766aed0ba583fce0efab98ebcdf76c
src/main/java/com/ycl/jxkg/controller/student/StudentExamController.java
@@ -1,14 +1,12 @@
package com.ycl.jxkg.controller.student;
import com.ycl.jxkg.base.Result;
import com.ycl.jxkg.domain.query.ExamQuery;
import com.ycl.jxkg.domain.vo.ExamSubmitVO;
import com.ycl.jxkg.service.ExamService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
 * @author:xp
@@ -22,6 +20,28 @@
    private final ExamService examService;
    /**
     * 学员端考试分页
     *
     * @param query
     * @return
     */
    @PostMapping("/page")
    public Result examList(ExamQuery query) {
        return examService.studentPage(query);
    }
    /**
     * 开始考试
     *
     * @param id
     * @return
     */
    @PostMapping("/start/{id}")
    public Result start(@PathVariable("id") Integer id) {
        return examService.start(id);
    }
    /**
     * 主动提交试卷
     *
     * @param submitData