修正comment,banner接口

This commit is contained in:
sjm
2023-12-22 14:03:59 +08:00
parent 39048bbcfc
commit 7d3f10a7dc
11 changed files with 224 additions and 23 deletions

View File

@@ -21,15 +21,15 @@ public class CommentController {
@Autowired
private CommentService commentService;
// 评论功能
@RequestMapping(method = RequestMethod.POST, value = "/reply_comment")
@RequestMapping(method = RequestMethod.POST, value = "/comment")
public String Reply1(@RequestBody Comment comment){
return commentService.Reply1(comment);
}
// 回复功能
@RequestMapping(method = RequestMethod.POST, value = "/comment")
public String Reply2(@RequestBody Comment comment){
return commentService.Reply2(comment);
@RequestMapping(method = RequestMethod.POST, value = "/reply_comment")
public String Reply2(@RequestBody Comment comment,int id){
return commentService.Reply2(comment,id);
}
// 删除功能
@RequestMapping(method = RequestMethod.GET, value = "/delete_comment")
@@ -40,4 +40,10 @@ public class CommentController {
public String addLikeCount(int id){
return commentService.AddLikeCount(id);
}
// 显示评论
@RequestMapping(method = RequestMethod.GET, value = "/view_comment")
public String View_comment(){
return commentService.View_comment();
}
}