feat:增加查询个人朋友圈接口
This commit is contained in:
@@ -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 = "新增评论")
|
||||
|
||||
Reference in New Issue
Block a user