package bdqn.newsManageServlet.Service.Impl;
import java.util.List;
import bdqn.newsManageServlet.Dao.commentDao;
import bdqn.newsManageServlet.Dao.Impl.commentDaoImpl;
import bdqn.newsManageServlet.Service.commentService;
import bdqn.newsManageServlet.entity.comment;
public class commentServiceImpl implements commentService {
commentDao cDao=new commentDaoImpl();
//根据新闻的id删除评论
public int delComment(int newsid) {
return cDao.delComment(newsid);
}
//分页查询评论信息(根据新闻的id)
public List<comment> getCommentPage(int pagesize, int pageindex, int newsid) {
// TODO Auto-generated method stub
return cDao.getCommentPage(pagesize, pageindex, newsid);
}
//查询总记录数(根据新闻id)
public int getPageCount(int newsid) {
// TODO Auto-generated method stub
return cDao.getPageCount(newsid);
}
}