diff --git a/src/main/java/com/jiaruiblog/controller/CommentController.java b/src/main/java/com/jiaruiblog/controller/CommentController.java index 20af0f1..70928be 100644 --- a/src/main/java/com/jiaruiblog/controller/CommentController.java +++ b/src/main/java/com/jiaruiblog/controller/CommentController.java @@ -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 commentIdList = batchIdDTO.getIds();