package bdqn.newsManageServlet.Service;
import java.util.List;
import bdqn.newsManageServlet.entity.categoryTB;
import bdqn.newsManageServlet.entity.newsTb;
/**
* 新闻类别的业务逻辑层的接口
* @author Administrator
*
*/
public interface categoryTBService {
// 删除,根据类别id删除
public int delCategory(int cgID);
// 查询所有的类别
public List<categoryTB> getCategoryTBAll();
// 添加新闻类别
public int addCategory(categoryTB cate);
// 修改新闻类别,根据类别
public int updateCategory(categoryTB cate);
// 获取类别,根据名称
public categoryTB getCateByName(String catename);
// 获取类别,根据id
public categoryTB getCateById(int id);
// 根据类别名称获取类别id
public categoryTB getCategoryIdByName(String categoryName);
}