瀏覽代碼

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

肖玮 5 年之前
父節點
當前提交
f120dcb210
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mec-education/src/main/java/com/ym/mec/education/controller/MessageController.java

+ 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();
     }