MyRecipes-BE/src/main/kotlin/org/octopus/internal/services/FoodService.kt

15 lines
462 B
Kotlin

package org.octopus.internal.services
import org.octopus.internal.common.enums.EFoodGroup
import org.octopus.internal.common.enums.EFoodNutrient
import org.octopus.internal.common.models.Food
interface FoodService {
fun getById(id: Long): Food
fun getAll(): MutableList<Food>
fun deleteById(id: Long)
fun deleteAll()
fun findByNutrient(nutrient: EFoodNutrient): MutableList<Food>
fun findByGroup(group: EFoodGroup): MutableList<Food>
}