新闻发布项目——接口类(commentDao)

package bdqn.newsMange.Dao;

import java.util.List;

import bdqn.newsMange.entity.comment;

/**
 * 新闻评论的接口
 * @author Administrator
 *
 */
public interface commentDao {

	//查询
	public List<comment>getCommentAll();
	
	//根据id查询新闻信息
	public List<comment> getCommentAllByNewsid(int newsid); 
	//添加
	public int addComment(comment comm);
	//修改
	public int updateComment(comment comm);
	//删除
	public int delComment(int id);
}

原文地址:https://www.cnblogs.com/a1111/p/12816564.html