CommentIndex.java 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. package com.ruoyi.system.domain.communityNews;
  2. import com.ruoyi.common.annotation.Excel;
  3. import com.ruoyi.common.core.domain.BaseEntity;
  4. /**
  5. * 社区资讯评论对象 comment_index
  6. *
  7. * @author boman
  8. * @date 2025-02-25
  9. */
  10. public class CommentIndex extends BaseEntity
  11. {
  12. private static final long serialVersionUID = 1L;
  13. /** 社区资讯评论ID */
  14. private Long commentId;
  15. /** 社区资讯ID */
  16. @Excel(name = "社区资讯ID")
  17. private Long communityId;
  18. /** 社区资讯标题 */
  19. @Excel(name = "社区资讯标题")
  20. private String communityTitle;
  21. /** 社区资讯类型(1:公告 2:通知 3:资讯) */
  22. @Excel(name = "社区资讯类型", readConverterExp = "1=:公告,2=:通知,3=:资讯")
  23. private String communityType;
  24. /** 根评论id 1:根评论 2:子评论 */
  25. @Excel(name = "根评论id 1:根评论 2:子评论")
  26. private Integer isRoot;
  27. /** 父评论id */
  28. @Excel(name = "父评论id")
  29. private Long parentId;
  30. /** 用户id */
  31. @Excel(name = "用户id")
  32. private Long userId;
  33. /** 用户昵称 */
  34. @Excel(name = "用户昵称")
  35. private String nickName;
  36. /** 头像地址 */
  37. @Excel(name = "头像地址")
  38. private String avatar;
  39. /** 所回复目标评论的用户id */
  40. @Excel(name = "所回复目标评论的用户id")
  41. private Long toUserId;
  42. /** 所回复目标评论的用户昵称 */
  43. @Excel(name = "所回复目标评论的用户昵称")
  44. private String toNickName;
  45. /** 所回复目标评论的头像地址 */
  46. @Excel(name = "所回复目标评论的头像地址")
  47. private String toAvatar;
  48. /**
  49. * 是否是二级回复的回复 Y:是 N:否
  50. */
  51. private String toRoot;
  52. /**
  53. * 是否是自己的评论
  54. */
  55. private String isMyself;
  56. /** 内容id */
  57. @Excel(name = "内容id")
  58. private Long contentId;
  59. /** 评论内容(冗余字段) */
  60. @Excel(name = "评论内容(冗余字段)")
  61. private String commentContent;
  62. /** 逻辑删除(Y:已删除,N:未删除) */
  63. private String delFlag;
  64. public String getIsMyself() {
  65. return isMyself;
  66. }
  67. public void setIsMyself(String isMyself) {
  68. this.isMyself = isMyself;
  69. }
  70. public String getToRoot() {
  71. return toRoot;
  72. }
  73. public void setToRoot(String toRoot) {
  74. this.toRoot = toRoot;
  75. }
  76. public String getCommunityTitle() {
  77. return communityTitle;
  78. }
  79. public void setCommunityTitle(String communityTitle) {
  80. this.communityTitle = communityTitle;
  81. }
  82. public void setCommentId(Long commentId)
  83. {
  84. this.commentId = commentId;
  85. }
  86. public Long getCommentId()
  87. {
  88. return commentId;
  89. }
  90. public void setCommunityId(Long communityId)
  91. {
  92. this.communityId = communityId;
  93. }
  94. public Long getCommunityId()
  95. {
  96. return communityId;
  97. }
  98. public void setCommunityType(String communityType)
  99. {
  100. this.communityType = communityType;
  101. }
  102. public String getCommunityType()
  103. {
  104. return communityType;
  105. }
  106. public void setIsRoot(Integer isRoot)
  107. {
  108. this.isRoot = isRoot;
  109. }
  110. public Integer getIsRoot()
  111. {
  112. return isRoot;
  113. }
  114. public void setParentId(Long parentId)
  115. {
  116. this.parentId = parentId;
  117. }
  118. public Long getParentId()
  119. {
  120. return parentId;
  121. }
  122. public void setUserId(Long userId)
  123. {
  124. this.userId = userId;
  125. }
  126. public Long getUserId()
  127. {
  128. return userId;
  129. }
  130. public void setNickName(String nickName)
  131. {
  132. this.nickName = nickName;
  133. }
  134. public String getNickName()
  135. {
  136. return nickName;
  137. }
  138. public void setAvatar(String avatar)
  139. {
  140. this.avatar = avatar;
  141. }
  142. public String getAvatar()
  143. {
  144. return avatar;
  145. }
  146. public void setToUserId(Long toUserId)
  147. {
  148. this.toUserId = toUserId;
  149. }
  150. public Long getToUserId()
  151. {
  152. return toUserId;
  153. }
  154. public void setToNickName(String toNickName)
  155. {
  156. this.toNickName = toNickName;
  157. }
  158. public String getToNickName()
  159. {
  160. return toNickName;
  161. }
  162. public void setToAvatar(String toAvatar)
  163. {
  164. this.toAvatar = toAvatar;
  165. }
  166. public String getToAvatar()
  167. {
  168. return toAvatar;
  169. }
  170. public void setContentId(Long contentId)
  171. {
  172. this.contentId = contentId;
  173. }
  174. public Long getContentId()
  175. {
  176. return contentId;
  177. }
  178. public void setCommentContent(String commentContent)
  179. {
  180. this.commentContent = commentContent;
  181. }
  182. public String getCommentContent()
  183. {
  184. return commentContent;
  185. }
  186. public void setDelFlag(String delFlag)
  187. {
  188. this.delFlag = delFlag;
  189. }
  190. public String getDelFlag()
  191. {
  192. return delFlag;
  193. }
  194. @Override
  195. public String toString() {
  196. return "CommentIndex{" +
  197. "commentId=" + commentId +
  198. ", communityId=" + communityId +
  199. ", communityTitle='" + communityTitle + '\'' +
  200. ", communityType='" + communityType + '\'' +
  201. ", isRoot=" + isRoot +
  202. ", parentId=" + parentId +
  203. ", userId=" + userId +
  204. ", nickName='" + nickName + '\'' +
  205. ", avatar='" + avatar + '\'' +
  206. ", toUserId=" + toUserId +
  207. ", toNickName='" + toNickName + '\'' +
  208. ", toAvatar='" + toAvatar + '\'' +
  209. ", toRoot='" + toRoot + '\'' +
  210. ", isMyself='" + isMyself + '\'' +
  211. ", contentId=" + contentId +
  212. ", commentContent='" + commentContent + '\'' +
  213. ", delFlag='" + delFlag + '\'' +
  214. '}';
  215. }
  216. }