新闻发布项目——业务逻辑层(commentService)

来源:互联网 发布:js定义数组长度 编辑:程序博客网 时间:2024/05/02 00:52
package bdqn.newsManageServlet.Service;import java.util.List;import bdqn.newsManageServlet.Dao.commentDao;import bdqn.newsManageServlet.Dao.Impl.commentDaoImpl;import bdqn.newsManageServlet.entity.comment;/** * 新闻评论的业务逻辑层 * @author Administrator * */public interface commentService {commentDao cDao=new commentDaoImpl();//根据新闻的id删除评论public int delComment(int newsid);//分页查询评论信息(根据新闻的id)public List<comment>getCommentPage(int pagesize,int pageindex,int newsid);//查询总记录数(根据新闻id)public int getPageCount(int newsid);}

0 0
原创粉丝点击