派生自 projectDept/qhighschool

EricsHu
2023-06-19 bc3b37b1622091def1f6ee4c3eb3ff79499b3466
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
package com.qxueyou.scc.operation.topic.service;
 
import java.util.Map;
 
import com.qxueyou.scc.base.model.Pager;
import com.qxueyou.scc.base.model.Result;
import com.qxueyou.scc.operation.topic.model.TopicInfo;
 
/**
 * 话题服务层
 * 
 * @author chenjunliang
 *
 */
public interface ITopicService {
    /**
     * 获取话题列表
     */
    Result getTopicLst(String classId, String keyword, Integer limit, Integer pageNum);
 
    /**
     * 获取话题内容信息
     */
    Result doTopicDetails(String topicId);
 
    /**
     * 话题的新增
     */
    Result addTopicInfo(TopicInfo topicInfo);
 
    /**
     * 获取最新话题列表
     */
    Result lstCommonTopic(String keyword, Integer limit, Integer pageNum, String classId);
 
    /**
     * 获取班级论坛列表
     */
    Result getClassForum();
 
    /**
     * 学习端获取班级论坛详情
     */
    Result getClassForumDetail(String classId);
 
    /**
     * 获取详情 获取评论列表
     */
    Result getCommentLst(String topicId, Integer limit, Integer pageNum);
 
    /**
     * 我发布的话题
     */
    Result myTopic(Integer pageSize, Integer pageNum);
 
    /**
     * 我的回复
     */
    Result myComment(Integer pageSize, Integer pageNum);
 
    /**
     * 删除我的回复
     */
    Result deleteMycomment(String commentId);
 
    /**
     * 回复我的
     */
    Result getCommentLstToMe(Integer pageSize, Integer pageNum);
 
    /**
     * 获取我的点赞
     * 
     * @return
     */
    Result getPraiseLst(Integer pageSize, Integer pageNum);
 
    /**
     * 话题回复评论
     */
    Result addComment(String content, String topicId, String commentId, String commentedId, String commentedName);
 
    /**
     * 点赞话题的评论
     */
    Result addPraise(String commentId, String topiId);
 
    /**
     * 删除话题
     */
    Result deleteTopic(String topicId);
 
    /**
     * 讨论统计
     */
    Result commentDetail(String userId);
 
    /**
     * 获取后台管理列表
     * 
     * @param classId
     * @param pageSize
     * @param pageNum
     * @param keyword
     * @return
     */
    Result getTopicLstOfAdmin(String classId, Integer pageSize, Integer pageNum, String keyword);
 
    /**
     * 话题的更新
     * 
     * @param topicName
     * @param topicDesc
     * @param startTime
     * @param endTime
     * @param classId
     * @param topicId
     * @return
     */
    Result updateTopicInfo(TopicInfo topicInfo);
 
    /**
     * 获取后台管理教师的话题列表
     * 
     * @param classId
     * @param pageSize
     * @param pageNum
     * @param keyword
     * @return
     */
    Result getTopicLstOfTeacher(String classId, Integer pageSize, Integer pageNum, String keyword);
    
    /**
     * 获取热门讨论
     * 
     * @param classId
     * @param keyword
     * @param limit
     * @param pageNum
     * @return
     */
    Map<String, Object> getHotTopicLst(String classId, String keyword, Integer limit, Integer pageNum, int type, int scope);
    
    /**
     * 获取讨论数量
     * 
     * @param keyword
     * @param classId
     * @param userId
     * @return
     */
    public int getTopicCount(String keyword, String classId, String userId);
    
    /**
     * app-我的回复
     * 
     * @param userId
     * @param pager
     * @return
     */
    Result appMyComment(String userId, Pager pager);
    
    /**
     * app端接口-回复我的获取列表
     * 
     * @param userId
     * @param pager
     * @return
     */
    Result commentToMe(String userId, Pager pager);
    
    /**
     * app端接口-我的点赞
     * 
     * @param userId
     * @param pager
     * @return
     */
    Result appMyPraise(String userId, Pager pager);
    
    /**
     * app端接口-给我赞的
     * 
     * @param userId
     * @param pager
     * @return
     */
    Result praiseToMe(String userId, Pager pager);
    
    /**
     * 获取班级讨论数量
     * 
     * @param classId
     * @return
     */
    public long getClassTopicCount(String classId);
}