diff --git a/blogserver/src/main/java/org/sang/mapper/CategoryMapper.java b/blogserver/src/main/java/org/sang/mapper/CategoryMapper.java new file mode 100644 index 0000000..ca85177 --- /dev/null +++ b/blogserver/src/main/java/org/sang/mapper/CategoryMapper.java @@ -0,0 +1,19 @@ +package org.sang.mapper; + +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.sang.bean.Category; + +import java.util.List; + + +@Mapper +public interface CategoryMapper { + List getAllCategories(); + + int deleteCategoryByIds(@Param("ids") String[] ids); + + int updateCategoryById(Category category); + + int addCategory(Category category); +}