标签:
package com.pb.news.service;
import java.util.List;
import com.pb.news.entity.News;
public interface NewsService {
//1.更新选择新闻
public boolean updateNews(News news);
//2.添加新闻
public boolean addNews(News news);
//3.册除新闻
public boolean deleteNews(int id);
//4.查询新闻信息
public List<News> getNewsList();
//5.通过新闻ID获取新闻
public News getNewsById(int id);
//获取新闻总数量
public int getTotalCount();
//分页获取新闻信息
public List<News> getPageNewsList(int pageNo,int pageSize);
}
标签:
原文地址:http://www.cnblogs.com/JesseCary/p/4507606.html