评论,回复,删评

This commit is contained in:
sjm
2023-12-22 11:00:12 +08:00
parent c8b79cc7a5
commit 3e1265b72c
3 changed files with 7 additions and 6 deletions

View File

@@ -32,9 +32,9 @@ public class CommentController {
return commentService.Reply2(comment);
}
// 删除功能
@RequestMapping(method = RequestMethod.POST, value = "/delete_comment")
public String Delete(Comment comment){
return commentService.Delete(comment);
@RequestMapping(method = RequestMethod.GET, value = "/delete_comment")
public String Delete(int id){
return commentService.Delete(id);
}
@RequestMapping(method = RequestMethod.GET, value = "/addLikeCount")
public String addLikeCount(int id){