fix(interaction): 收藏计数同步维护并新增评论数接口
This commit is contained in:
1 parent
88794b816e
commit
65e8fbfc70
11 files changed
+382
-47
No files matched your search
+6
@@ -63,6 +63,12 @@ public class AppCommentController {
|
||||
return Result.ok(commentService.page(SecurityUtils.getUserIdOrNull(), query));
|
||||
}
|
||||
|
||||
@Operation(summary = "短剧评论总数(可匿名访问)")
|
||||
@GetMapping("/count")
|
||||
public Result<Long> count(@RequestParam Long dramaId) {
|
||||
return Result.ok(commentService.countByDrama(dramaId));
|
||||
}
|
||||
|
||||
@Operation(summary = "删除自己的评论")
|
||||
@DeleteMapping("/{id}")
|
||||
public Result<Void> delete(@PathVariable Long id) {
|
||||
|
||||
Reference in new issue
Block a user