Commit 55b2cf55 by 段启岩

优化获取我关注的用户的动态列表的功能

parent 6f4442be
...@@ -212,4 +212,14 @@ public class PostApi { ...@@ -212,4 +212,14 @@ public class PostApi {
postPageDTO.setDataList(postVOList); postPageDTO.setDataList(postVOList);
return postPageDTO; return postPageDTO;
} }
@ApiOperation("获取我关注的用户的动态列表")
@GetMapping("/posts/followed")
public Response<?> getMyFollowdePosts (@Valid PageForm pageForm , BindingResult bindingResult, @CurrentSubject Subject subject) {
if (bindingResult.hasErrors()) {
return Response.fieldError(bindingResult.getFieldError());
}
IPage<Post> postPage = postService.getFollowedPostPage(pageForm.getPage(), pageForm.getSize(), (String) subject.getId());
return Response.success(toPostVOPage(postPage));
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment