CommentContentMapper.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. package com.ruoyi.system.mapper;
  2. import com.ruoyi.system.domain.communityNews.CommentContent;
  3. import java.util.List;
  4. /**
  5. * 社区资讯评论内容Mapper接口
  6. *
  7. * @author boman
  8. * @date 2025-02-25
  9. */
  10. public interface CommentContentMapper
  11. {
  12. /**
  13. * 查询社区资讯评论内容
  14. *
  15. * @param contentId 社区资讯评论内容主键
  16. * @return 社区资讯评论内容
  17. */
  18. public CommentContent selectCommentContentByContentId(Long contentId);
  19. /**
  20. * 查询社区资讯评论内容列表
  21. *
  22. * @param commentContent 社区资讯评论内容
  23. * @return 社区资讯评论内容集合
  24. */
  25. public List<CommentContent> selectCommentContentList(CommentContent commentContent);
  26. /**
  27. * 新增社区资讯评论内容
  28. *
  29. * @param commentContent 社区资讯评论内容
  30. * @return 结果
  31. */
  32. public int insertCommentContent(CommentContent commentContent);
  33. /**
  34. * 修改社区资讯评论内容
  35. *
  36. * @param commentContent 社区资讯评论内容
  37. * @return 结果
  38. */
  39. public int updateCommentContent(CommentContent commentContent);
  40. /**
  41. * 删除社区资讯评论内容
  42. *
  43. * @param contentId 社区资讯评论内容主键
  44. * @return 结果
  45. */
  46. public int deleteCommentContentByContentId(Long contentId);
  47. /**
  48. * 批量删除社区资讯评论内容
  49. *
  50. * @param contentIds 需要删除的数据主键集合
  51. * @return 结果
  52. */
  53. public int deleteCommentContentByContentIds(Long[] contentIds);
  54. /**
  55. * 更新社区资讯评论内容表
  56. * @param commentId 评论主键
  57. * @return
  58. */
  59. public int updateCommentContentByContentId(Long commentId);
  60. /**
  61. * 删除评论内容表数据
  62. * @param commentId 评论id
  63. * @return
  64. */
  65. public int deleteCommentContentByCommentId(Long commentId);
  66. /**
  67. * 更新评论内容表点赞数量
  68. * @param commentContent
  69. * @return
  70. */
  71. int updateCommentContentByCommentId(CommentContent commentContent);
  72. }