第三讲 service的接口方法
作者:
张三爱的歌 | 来源:发表于
2019-09-29 13:17 被阅读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);
}
本文标题:第三讲 service的接口方法
本文链接:https://www.haomeiwen.com/subject/kfefpctx.html
网友评论