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 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); }