From 013788bb3c3ec6c11274292a3af8957d4e8d1772 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 31 五月 2024 14:51:09 +0800
Subject: [PATCH] 实体类调整

---
 src/main/java/com/ycl/jxkg/controller/student/ExamPaperController.java |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/controller/student/ExamPaperController.java b/src/main/java/com/ycl/jxkg/controller/student/ExamPaperController.java
index babf0e9..930ab03 100644
--- a/src/main/java/com/ycl/jxkg/controller/student/ExamPaperController.java
+++ b/src/main/java/com/ycl/jxkg/controller/student/ExamPaperController.java
@@ -2,7 +2,7 @@
 
 import com.ycl.jxkg.base.BaseApiController;
 import com.ycl.jxkg.base.Result;
-import com.ycl.jxkg.domain.ExamPaper;
+import com.ycl.jxkg.domain.entity.ExamPaper;
 import com.ycl.jxkg.service.ExamPaperAnswerService;
 import com.ycl.jxkg.service.ExamPaperService;
 import com.ycl.jxkg.utils.DateTimeUtil;
@@ -11,13 +11,14 @@
 import com.ycl.jxkg.vo.student.exam.ExamPaperPageResponseVO;
 import com.ycl.jxkg.vo.student.exam.ExamPaperPageVO;
 import com.github.pagehelper.PageInfo;
+import lombok.RequiredArgsConstructor;
 import org.springframework.beans.BeanUtils;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.ApplicationEventPublisher;
 import org.springframework.web.bind.annotation.*;
 
 import javax.validation.Valid;
 
+@RequiredArgsConstructor
 @RestController("StudentExamPaperController")
 @RequestMapping(value = "/api/student/exam/paper")
 public class ExamPaperController extends BaseApiController {
@@ -25,14 +26,6 @@
     private final ExamPaperService examPaperService;
     private final ExamPaperAnswerService examPaperAnswerService;
     private final ApplicationEventPublisher eventPublisher;
-
-    @Autowired
-    public ExamPaperController(ExamPaperService examPaperService, ExamPaperAnswerService examPaperAnswerService, ApplicationEventPublisher eventPublisher) {
-        this.examPaperService = examPaperService;
-        this.examPaperAnswerService = examPaperAnswerService;
-        this.eventPublisher = eventPublisher;
-    }
-
 
     @RequestMapping(value = "/select/{id}", method = RequestMethod.POST)
     public Result<ExamPaperEditRequestVO> select(@PathVariable Integer id) {

--
Gitblit v1.8.0