派生自 projectDept/qhighschool

胡仁荣
2022-10-31 fe7381d6e8ec1f427408de0297ac7f41533202f6
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);
}