CommentResult.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.goafanti.comment.bo;
  2. import com.goafanti.core.mybatis.page.Pagination;
  3. public class CommentResult {
  4. Integer positiveCommentCount;
  5. Integer negativeCommentCount;
  6. Integer ordinaryCommentCount;
  7. Integer totalCommentCount;
  8. Pagination<CommentDetailResult> comments;
  9. public Integer getPositiveCommentCount() {
  10. return positiveCommentCount;
  11. }
  12. public void setPositiveCommentCount(Integer positiveCommentCount) {
  13. this.positiveCommentCount = positiveCommentCount;
  14. }
  15. public Integer getNegativeCommentCount() {
  16. return negativeCommentCount;
  17. }
  18. public void setNegativeCommentCount(Integer negativeCommentCount) {
  19. this.negativeCommentCount = negativeCommentCount;
  20. }
  21. public Integer getOrdinaryCommentCount() {
  22. return ordinaryCommentCount;
  23. }
  24. public void setOrdinaryCommentCount(Integer ordinaryCommentCount) {
  25. this.ordinaryCommentCount = ordinaryCommentCount;
  26. }
  27. public Integer getTotalCommentCount() {
  28. return totalCommentCount;
  29. }
  30. public void setTotalCommentCount(Integer totalCommentCount) {
  31. this.totalCommentCount = totalCommentCount;
  32. }
  33. public Pagination<CommentDetailResult> getComments() {
  34. return comments;
  35. }
  36. public void setComments(Pagination<CommentDetailResult> comments) {
  37. this.comments = comments;
  38. setTotalCommentCount(comments.getTotalCount());
  39. }
  40. }