From 4249468d279458f5ffc8bdf32816674f00056d03 Mon Sep 17 00:00:00 2001 From: many2many <6168830@qq.com> Date: Tue, 21 May 2024 15:21:29 +0800 Subject: [PATCH] =?UTF-8?q?add.=20=20=E4=B8=B4=E6=97=B6=E5=AE=9E=E7=8E=B0/?= =?UTF-8?q?msgcount/unread?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lk/paopao/controller/UserController.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/lk/paopao/controller/UserController.java b/src/main/java/com/lk/paopao/controller/UserController.java index 5fcff86..76fd759 100644 --- a/src/main/java/com/lk/paopao/controller/UserController.java +++ b/src/main/java/com/lk/paopao/controller/UserController.java @@ -9,6 +9,9 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +import java.util.HashMap; +import java.util.Map; + @RestController @RequestMapping("${app.version}/user") public class UserController { @@ -20,4 +23,13 @@ public class UserController { public DataResult info() { return ResultUtil.ok(userService.info()); } + + @GetMapping("/msgcount/unread") + public DataResult> unread() { + // TODO: 临时实现,后续需要实现 + Map map = new HashMap<>(); + map.put("count",0); + return ResultUtil.ok(map); + } + }