add. 临时实现/msgcount/unread
This commit is contained in:
parent
e9d804e3ed
commit
4249468d27
@ -9,6 +9,9 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("${app.version}/user")
|
@RequestMapping("${app.version}/user")
|
||||||
public class UserController {
|
public class UserController {
|
||||||
@ -20,4 +23,13 @@ public class UserController {
|
|||||||
public DataResult<UserDto> info() {
|
public DataResult<UserDto> info() {
|
||||||
return ResultUtil.ok(userService.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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user