Skip to content

Commit

Permalink
add: admin delete comments by batch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrettluo committed Sep 7, 2023
1 parent e6cbdfe commit 21824cd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public BaseApiResult remove(@RequestBody Comment comment, HttpServletRequest req
return commentService.remove(comment, userId);
}

@ApiOperation(value = "根据id列表移除批量评论", notes = "根据id移除批量评论")
@Permission(value = PermissionEnum.ADMIN)
@ApiOperation(value = "根据id列表移除批量评论", notes = "管理员才能进行此项操作根据id移除批量评论")
@DeleteMapping(value = "/auth/removeBatch")
public BaseApiResult removeBatch(@RequestBody BatchIdDTO batchIdDTO) {
List<String> commentIdList = batchIdDTO.getIds();
Expand Down

0 comments on commit 21824cd

Please sign in to comment.