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