评论,回复,删评

This commit is contained in:
sjm 2023-12-22 11:10:17 +08:00
parent 3e1265b72c
commit 39048bbcfc
2 changed files with 1 additions and 11 deletions

View File

@ -39,15 +39,5 @@ public class CommentController {
@RequestMapping(method = RequestMethod.GET, value = "/addLikeCount") @RequestMapping(method = RequestMethod.GET, value = "/addLikeCount")
public String addLikeCount(int id){ public String addLikeCount(int id){
return commentService.AddLikeCount(id); return commentService.AddLikeCount(id);
// HttpServletResponse resp = null;
// PrintWriter writer = null;
// try {
// writer = resp.getWriter();
// } catch (IOException e) {
// throw new RuntimeException(e);
// }
// writer.println(commentService.AddLikeCount(id));
} }
} }

View File

@ -11,7 +11,7 @@ import lombok.Data;
public class Comment implements Serializable { public class Comment implements Serializable {
public Comment(){ public Comment(){
this.likeCount = Long.valueOf(0); this.likeCount = Long.valueOf(0);
this.commentStatus = 1; this.commentStatus = 0;
} }
public Integer getId() { public Integer getId() {
return id; return id;