Ver Fonte

查看检验报告现在可以无需token了

lighter há 4 anos atrás
pai
commit
17bd85eceb

+ 3 - 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.pojo.ResultVo;
 import thyyxxk.webserver.pojo.examinations.inspections.InspectionsIndex;
 import thyyxxk.webserver.pojo.examinations.inspections.QueryInspectionParam;
@@ -20,11 +21,13 @@ public class InspectionsController {
         this.service = service;
     }
 
+    @PassToken
     @PostMapping("/queryInspectionsIndex")
     public ResultVo<List<InspectionsIndex>> queryInspectionsIndex(@RequestBody QueryInspectionParam param) {
         return service.queryInspectionsIndex(param);
     }
 
+    @PassToken
     @GetMapping("/queryInspectionDetail")
     public ResultVo<InspectionDetail> queryInspectionDetail(@RequestParam("orderId") String orderId) {
         return service.queryInspectionDetail(orderId);