Browse Source

根据当前登录人获取个人信息 消息数量修改请求方式

肖玮 5 năm trước cách đây
mục cha
commit
f120dcb210

+ 2 - 2
mec-education/src/main/java/com/ym/mec/education/controller/MessageController.java

@@ -4,7 +4,7 @@ import com.ym.mec.education.base.BaseResponse;
 import com.ym.mec.education.service.ISysMessageService;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -26,7 +26,7 @@ public class MessageController {
      * 获取当前登陆人的消息
      * @return
      */
-    @PostMapping("/info")
+    @GetMapping("/info")
     public BaseResponse getMessage(){
         return messageService.getInfo();
     }