소스 검색

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

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