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