package com.mzl.flower.service.film; import com.github.pagehelper.PageInfo; import com.mzl.flower.dto.request.film.CommentSearchDTO; import com.mzl.flower.dto.response.film.CommentDTO; import java.time.LocalDateTime; import java.util.List; /** * @author fanghaowei * @date 2025/4/6 14:33 */ public interface CommentService { /** * 获取文章的评论信息 * * @param commentSearchDTO * @return */ List getCommentByFilmId(CommentSearchDTO commentSearchDTO); /** * 获取所有通过审核文章的评论信息 * * @param startTime * @param endTime * @return */ List getAllArticleComment(LocalDateTime startTime, LocalDateTime endTime); /** * 获取所有通过审核文章的评论回复信息 * * @param startTime * @param endTime * @return */ List getAllCommentReply(LocalDateTime startTime, LocalDateTime endTime); /** * 获取最新评论信息 * * @param commentSearchDTO * @return */ PageInfo getLatestComment(CommentSearchDTO commentSearchDTO); /** * 获取文章的评论数量 * * @param articleId * @return */ Long getCommentCountByArticle(Integer articleId); /** * 获取评论数量 * * @return */ Long getTotal(); /** * 创建评论 * * @param commentDTO * @return */ CommentDTO create(CommentDTO commentDTO); /** * 删除评论 * * @param commentId * @return */ Boolean delete(Integer commentId); /** * 通过父级ID获取子级评论信息 * * @param result 存放结果 * @param preId * @return */ void getAllChildrenByPreId(List result, Integer preId); /** * 获取评论id获取文章id * * @param commentId * @return */ String getArticleIdByCommentId(Integer commentId); /** * 通过批量id获取评论信息 * * @param commentId * @return */ CommentDTO getById(Integer commentId); }