Browse Source

消息列表

yanliming 5 years ago
parent
commit
691f5be8b3

+ 19 - 0
picc-admin-server/src/main/java/com/jpsoft/picc/modules/base/controller/MessageController.java

@@ -220,4 +220,23 @@ public class MessageController {
 
 
         return msgResult;
         return msgResult;
     }
     }
+
+
+    @ApiOperation(value="消息列表")
+    @RequestMapping(value = "list",method = RequestMethod.POST)
+    public MessageResult<List<Message>> list(@RequestAttribute String subject){
+
+        //当前用户ID
+        System.out.println(subject);
+
+        MessageResult<List<Message>> msgResult = new MessageResult<>();
+
+        List<Message> list = messageService.findByRecipientId(subject);
+
+
+        msgResult.setResult(true);
+        msgResult.setData(list);
+
+        return msgResult;
+    }
 }
 }