add. 临时实现/msgcount/unread

This commit is contained in:
many2many 2024-05-21 15:21:29 +08:00
parent e9d804e3ed
commit 4249468d27

View File

@ -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<UserDto> info() {
return ResultUtil.ok(userService.info());
}
@GetMapping("/msgcount/unread")
public DataResult<Map<String,Integer>> unread() {
// TODO: 临时实现后续需要实现
Map<String,Integer> map = new HashMap<>();
map.put("count",0);
return ResultUtil.ok(map);
}
}