feat:增加查询个人朋友圈接口

This commit is contained in:
2025-06-30 22:52:09 +08:00
parent ec5636e6d2
commit 2a31d63a41
5 changed files with 37 additions and 9 deletions

View File

@@ -37,10 +37,16 @@ public class MomentController {
return momentService.deleteMoment(id);
}
@Operation(summary = "查询朋友圈")
@Operation(summary = "查询所有朋友圈")
@GetMapping("")
public @JsonView(ReadView.class) List<MomentDto> queryMoment() {
return momentService.queryMoment();
public @JsonView(ReadView.class) List<MomentDto> queryMomentList() {
return momentService.queryMomentList();
}
@Operation(summary = "查询朋友圈")
@GetMapping("/{id}")
public @JsonView(ReadView.class) List<MomentDto> queryMomentById(@PathVariable("id") long id) {
return momentService.queryMomentById(id);
}
@Operation(summary = "新增评论")