cloudroam
2025-06-04 ed0dc655e6732f15d30f399c0d460ad7b9fe42da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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<CommentDTO> getCommentByFilmId(CommentSearchDTO commentSearchDTO);
 
    /**
     * 获取所有通过审核文章的评论信息
     *
     * @param startTime
     * @param endTime
     * @return
     */
    List<CommentDTO> getAllArticleComment(LocalDateTime startTime, LocalDateTime endTime);
 
    /**
     * 获取所有通过审核文章的评论回复信息
     *
     * @param startTime
     * @param endTime
     * @return
     */
    List<CommentDTO> getAllCommentReply(LocalDateTime startTime, LocalDateTime endTime);
 
    /**
     * 获取最新评论信息
     *
     * @param commentSearchDTO
     * @return
     */
    PageInfo<CommentDTO> getLatestComment(CommentSearchDTO commentSearchDTO);
 
    /**
     * 获取文章的评论数量
     *
     * @param articleId
     * @return
     */
    Long getCommentCountByArticle(Integer articleId);
 
    /**
     * 获取评论数量
     *
     * @return
     */
    Long getTotal();
 
    /**
     * 创建评论
     *
     * @param commentDTO
     * @return
     */
    Boolean create(CommentDTO commentDTO);
 
    /**
     * 删除评论
     *
     * @param commentId
     * @return
     */
    Boolean delete(Integer commentId);
 
    /**
     * 通过父级ID获取子级评论信息
     *
     * @param result 存放结果
     * @param preId
     * @return
     */
    void getAllChildrenByPreId(List<CommentDTO> result, Integer preId);
 
    /**
     * 获取评论id获取文章id
     *
     * @param commentId
     * @return
     */
    String getArticleIdByCommentId(Integer commentId);
 
    /**
     * 通过批量id获取评论信息
     *
     * @param commentId
     * @return
     */
    CommentDTO getById(Integer commentId);
}