新闻发布项目——接口类(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);
}

posted @ 2016-11-17 22:23  穆雄雄  阅读(205)  评论(0编辑  收藏  举报