zhangshiyu_branch
ZSY 1 year ago
parent 76e0676749
commit 369ebcb26c

@ -0,0 +1,76 @@
package com.liuyanzhao.ssm.blog.service;
import com.liuyanzhao.ssm.blog.entity.Category;
import java.util.List;
/**
* @author
* @date 2017/8/24
*/
public interface CategoryService {
/**
*
*
* @return
*/
Integer countCategory();
/**
*
*
* @return
*/
List<Category> listCategory();
/**
*
*
* @return
*/
List<Category> listCategoryWithCount();
/**
*
*
* @param id ID
*/
void deleteCategory(Integer id);
/**
* id
*
* @param id ID
* @return
*/
Category getCategoryById(Integer id);
/**
*
*
* @param category
* @return
*/
Category insertCategory(Category category);
/**
*
*
* @param category
*/
void updateCategory(Category category);
/**
*
*
* @param name
* @return
*/
Category getCategoryByName(String name);
}
Loading…
Cancel
Save