package bdqn.newsMange.Dao; import java.util.List; import bdqn.newsMange.entity.newsTb; /** * 新闻的接口类 * @author Administrator * */ public interface newsTbDao { //查询 public List<newsTb>getnewsTbAll(); //添加 public int addNewsTb(newsTb news); //修改 public int updateNewsTb(newsTb news); //删除 public int addNewsTb(int id); //根据新闻的id查询新闻的信息 public newsTb getAllNewsById(int id); //根据新闻类别id查询新闻 public List<newsTb>getnewsAllById(int id); }