Browse Source

添加几个PassToken

lighter 10 tháng trước cách đây
mục cha
commit
2ec46e7d6a

+ 4 - 0
src/main/java/thyyxxk/webserver/controller/examinations/InspectionsController.java

@@ -2,6 +2,7 @@ package thyyxxk.webserver.controller.examinations;
 
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
+import thyyxxk.webserver.config.auth.PassToken;
 import thyyxxk.webserver.entity.ResultVo;
 import thyyxxk.webserver.entity.examinations.inspections.request.ReportDetailInquiry;
 import thyyxxk.webserver.entity.examinations.inspections.request.ReportIndexInquiry;
@@ -25,6 +26,7 @@ public class InspectionsController {
         this.service = service;
     }
 
+    @PassToken
     @PostMapping("/checkIndexByCategory")
     public ResultVo<List> checkIndexByCategory(@RequestBody ReportIndexInquiry inquiry) {
         List list;
@@ -50,6 +52,7 @@ public class InspectionsController {
         return ResultVoUtil.success(service.checkExamIndex(inquiry));
     }
 
+    @PassToken
     @PostMapping("/checkExamDetail")
     public ResultVo<ExamDetailResponse> checkExamDetail(@RequestBody ReportDetailInquiry param) {
         return ResultVoUtil.success(service.checkExamDetail(param));
@@ -60,6 +63,7 @@ public class InspectionsController {
         return ResultVoUtil.success(service.checkTestIndex(inquiry));
     }
 
+    @PassToken
     @PostMapping("/checkTestDetail")
     public ResultVo<TestReport> checkTestDetail(@RequestBody ReportDetailInquiry param) {
         return ResultVoUtil.success(service.checkTestDetail(param));