package com.bonus.canteen.core.cook.service;

import java.util.List;
import com.bonus.canteen.core.cook.domain.CookMaterialType;
import com.bonus.canteen.core.cook.vo.CookMaterialTypeTreeVO;

/**
 * 原料类别Service接口
 * 
 * @author xsheng
 * @date 2025-05-25
 */
public interface ICookMaterialTypeService {
    /**
     * 查询原料类别
     * 
     * @param materialTypeId 原料类别主键
     * @return 原料类别
     */
    public CookMaterialType selectCookMaterialTypeByMaterialTypeId(Long materialTypeId);

    /**
     * 查询原料类别列表
     * 
     * @param cookMaterialType 原料类别
     * @return 原料类别集合
     */
    public List<CookMaterialType> selectCookMaterialTypeList(CookMaterialType cookMaterialType);

    /**
     * 新增原料类别
     * 
     * @param cookMaterialType 原料类别
     * @return 结果
     */
    public int insertCookMaterialType(CookMaterialType cookMaterialType);

    /**
     * 修改原料类别
     * 
     * @param cookMaterialType 原料类别
     * @return 结果
     */
    public int updateCookMaterialType(CookMaterialType cookMaterialType);

    /**
     * 批量删除原料类别
     * 
     * @param materialTypeIds 需要删除的原料类别主键集合
     * @return 结果
     */
    public int deleteCookMaterialTypeByMaterialTypeIds(Long[] materialTypeIds);

    /**
     * 获取所有原料类别树形结构
     *
     * @return 原料类别树形结构
     */
    public List<CookMaterialTypeTreeVO> getTree();
}
