| | |
| | | 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 |
| | |
| | | Result getTopicLstOfAdmin(String classId, Integer pageSize, Integer pageNum, String keyword); |
| | | |
| | | /** |
| | | * 话题的更新 |
| | | * 话题的更新 |
| | | * |
| | | * @param topicName |
| | | * @param topicDesc |
| | |
| | | Result updateTopicInfo(TopicInfo topicInfo); |
| | | |
| | | /** |
| | | * 获取后台管理教师的话题列表 |
| | | * 获取后台管理教师的话题列表 |
| | | * |
| | | * @param classId |
| | | * @param pageSize |
| | |
| | | Result getTopicLstOfTeacher(String classId, Integer pageSize, Integer pageNum, String keyword); |
| | | |
| | | /** |
| | | * 获取热门讨论 |
| | | * 获取热门讨论 |
| | | * |
| | | * @param classId |
| | | * @param keyword |
| | |
| | | Map<String, Object> getHotTopicLst(String classId, String keyword, Integer limit, Integer pageNum, int type, int scope); |
| | | |
| | | /** |
| | | * 获取讨论数量 |
| | | * 获取讨论数量 |
| | | * |
| | | * @param keyword |
| | | * @param classId |
| | |
| | | public int getTopicCount(String keyword, String classId, String userId); |
| | | |
| | | /** |
| | | * app-我的回复 |
| | | * app-我的回复 |
| | | * |
| | | * @param userId |
| | | * @param pager |
| | |
| | | Result appMyComment(String userId, Pager pager); |
| | | |
| | | /** |
| | | * app端接口-回复我的获取列表 |
| | | * app端接口-回复我的获取列表 |
| | | * |
| | | * @param userId |
| | | * @param pager |
| | |
| | | Result commentToMe(String userId, Pager pager); |
| | | |
| | | /** |
| | | * app端接口-我的点赞 |
| | | * app端接口-我的点赞 |
| | | * |
| | | * @param userId |
| | | * @param pager |
| | |
| | | Result appMyPraise(String userId, Pager pager); |
| | | |
| | | /** |
| | | * app端接口-给我赞的 |
| | | * app端接口-给我赞的 |
| | | * |
| | | * @param userId |
| | | * @param pager |
| | |
| | | Result praiseToMe(String userId, Pager pager); |
| | | |
| | | /** |
| | | * 获取班级讨论数量 |
| | | * 获取班级讨论数量 |
| | | * |
| | | * @param classId |
| | | * @return |