package com.YuyeTech.HeartRate.game.food.repository;

import com.YuyeTech.HeartRate.common.repository.*;
import com.YuyeTech.HeartRate.game.food.pojo.Food;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface FoodRepository extends CommonRepository<Food, Integer> {

    List<Food>  findAllByIdIn(List<Integer> ids);

    Optional<Food> findByTitle(String title);

}
