From d0ba0324430a0010ecf47e5cc0e4df609d586cfd Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 19 六月 2024 11:31:00 +0800
Subject: [PATCH] 会议学生端查询
---
src/main/java/com/ycl/jxkg/controller/student/StudentExamController.java | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/ycl/jxkg/controller/student/StudentExamController.java b/src/main/java/com/ycl/jxkg/controller/student/StudentExamController.java
index d455f65..a3caa6f 100644
--- a/src/main/java/com/ycl/jxkg/controller/student/StudentExamController.java
+++ b/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锛歺p
@@ -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
--
Gitblit v1.8.0