Browse Source

passtoken

lighter 1 year ago
parent
commit
650e6fa26b

+ 2 - 0
src/main/java/thyyxxk/wxservice_server/controller/AppointmentController.java

@@ -3,6 +3,7 @@ package thyyxxk.wxservice_server.controller;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
+import thyyxxk.wxservice_server.config.auth.PassToken;
 import thyyxxk.wxservice_server.entity.BriefPatInfo;
 import thyyxxk.wxservice_server.entity.ResultVo;
 import thyyxxk.wxservice_server.entity.appointment.*;
@@ -30,6 +31,7 @@ public class AppointmentController {
         return service.getAllDepartments();
     }
 
+    @PassToken
     @GetMapping("/refreshMzClasses")
     public ResultVo<String> refreshMzClasses() {
         return service.refreshMzClasses();

+ 0 - 12
src/main/java/thyyxxk/wxservice_server/entity/appointment/PatientBriefInfo.java

@@ -1,12 +0,0 @@
-package thyyxxk.wxservice_server.entity.appointment;
-
-import lombok.Data;
-
-@Data
-public class PatientBriefInfo {
-    private String patientId;
-    private String name;
-    private String phone;
-    private String socialNo;
-    private Integer isDefault;
-}