package com.gxwebsoft.apps.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.apps.entity.HualalaFood;
import com.gxwebsoft.apps.param.HualalaFoodParam;

import java.util.List;

/**
 * 菜品分类Service
 *
 * @author 科技小王子
 * @since 2023-01-12 15:34:55
 */
public interface HualalaFoodService extends IService<HualalaFood> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<HualalaFood>
     */
    PageResult<HualalaFood> pageRel(HualalaFoodParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<HualalaFood>
     */
    List<HualalaFood> listRel(HualalaFoodParam param);

    /**
     * 根据id查询
     *
     * @param id
     * @return HualalaFood
     */
    HualalaFood getByIdRel(Integer id);

    HualalaFood getByFoodId(Integer foodId);

}
