feat:更新朋友圈功能

This commit is contained in:
2025-06-27 15:58:43 +08:00
parent 9cfbae7c69
commit eadf548a94
8 changed files with 93 additions and 6 deletions

View File

@@ -31,6 +31,12 @@ public class MomentController {
return momentService.updateMoment(id, momentDto);
}
@Operation(summary = "删除朋友圈")
@DeleteMapping("/{id}")
public Boolean deleteMoment(@PathVariable("id") long id) {
return momentService.deleteMoment(id);
}
@Operation(summary = "查询朋友圈")
@GetMapping("")
public @JsonView(ReadView.class) List<MomentDto> queryMoment() {