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