fix comment thumbupCount field names

main
wangqing 9 months ago
parent 920af3ab67
commit 8de5e5b376

@ -202,11 +202,11 @@ public class CommentController extends BaseController {
} }
commentResp.setTopChildrenComment(topComment); commentResp.setTopChildrenComment(topComment);
} }
commentResp.setThumbupCountString(comment.getThumbupCount()+""); // commentResp.setThumbupCountString(comment.getThumbupCount()+"");
commentResp.setThumbupCountInt(comment.getThumbupCount()); commentResp.setThumbupCount(comment.getThumbupCount());
if(comment.getThumbupCount()>999) { // if(comment.getThumbupCount()>999) {
commentResp.setThumbupCountString("999+"); // commentResp.setThumbupCountString("999+");
} // }
return commentResp; return commentResp;
} }
@ -237,11 +237,11 @@ public class CommentController extends BaseController {
} }
commentResp.setTopChildrenComment(topComment); commentResp.setTopChildrenComment(topComment);
} }
commentResp.setThumbupCountString(comment.getThumbupCount()+""); // commentResp.setThumbupCountString(comment.getThumbupCount()+"");
commentResp.setThumbupCountInt(comment.getThumbupCount()); commentResp.setThumbupCount(comment.getThumbupCount());
if(comment.getThumbupCount()>999) { // if(comment.getThumbupCount()>999) {
commentResp.setThumbupCountString("999+"); // commentResp.setThumbupCountString("999+");
} // }
return commentResp; return commentResp;
} }

@ -62,4 +62,5 @@ public class Comment implements Serializable {
private String replyToUserId; private String replyToUserId;
private String replyToNickname; private String replyToNickname;
} }

@ -26,9 +26,10 @@ public class CommentResp implements Serializable {
private String avatar; private String avatar;
// 点赞数 // 点赞数
private String thumbupCountString; // private String thumbupCountString;
private int thumbupCountInt; // 点赞数
private Integer thumbupCount;
// 转发数 // 转发数
// private Integer share; // private Integer share;
// 评论数量 // 评论数量

Loading…
Cancel
Save