資源簡介
北大青鳥 S2結業項目 仿葫蘆俠三樓 帶數據庫
代碼片段和文件信息
package?com.bbs.dao;
import?com.bbs.entity.Comment;
import?com.bbs.entity.Reward;
import?com.bbs.entity.Topic;
import?java.util.List;
public?interface?CommentDao?{
/**
?*?根據?話題id?查詢打賞
?*?@param?topicId
?*?@return
?*/
List?getRewardsByTopicId(String?topicId);
/**
?*?根據?話題id?查詢話題對象
?*?@param?topicId
?*?@return
?*/
Topic?getTopicById(String?topicId);
/**
?*?發布評論
?*?@param?comment
?*?@return
?*/
int?releaseComment(Comment?comment);
/**
?*?刪除對象
?*?@param?id
?*?@return
?*/
int?daleteComment(String?id);
/**
?*?查詢指定?分頁?對象?集合
?*?@param?topicId?評論Id
?*?@param?pagination?頁碼
?*?@param?total 總頁數
?*?@return?對象?集合
?*/
List?getCommentPaging(int?topicId?int?pagination?int?total);
/**
?*?獲取頁碼總數量
?*?@return
?*/
int?getCommentCount(String?id);
/**
?*?根據帖子id刪除帖子下的所有的評論
?*?@param?Topicid
?*?@return
?*/
int?setComment_topicId_delete(String?Topicid);
}
評論
共有 條評論