评论,回复,删评
This commit is contained in:
parent
3e1265b72c
commit
39048bbcfc
@ -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));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user