第三讲 service的接口方法
2019-09-29 本文已影响0人
张三爱的歌
package com.example.demo.service;
import com.example.demo.dataobject.ProductCategory;
import java.util.List;
/**
* 类目的service
*/
public interface CategoryService {
//通过类目id查询
ProductCategory findOne(Integer categoryId);
//查询类目所有
List<ProductCategory> findAll();
//通过类目的类型查询
List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);
//新增
ProductCategory save(ProductCategory productCategory);
}