mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-26 02:35:04 +08:00
feat: do my test
This commit is contained in:
@@ -54,7 +54,6 @@ public class PostController {
|
|||||||
return postService.listPosts().stream().map(this::toDto).collect(Collectors.toList());
|
return postService.listPosts().stream().map(this::toDto).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo(tim): 希望返回文章所有评论,包含所有评论的子评论(包含reaction)、文章本身的reaction
|
|
||||||
private PostDto toDto(Post post) {
|
private PostDto toDto(Post post) {
|
||||||
PostDto dto = new PostDto();
|
PostDto dto = new PostDto();
|
||||||
dto.setId(post.getId());
|
dto.setId(post.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user