* Extended functionalities

* Added different UIs
This commit is contained in:
2026-06-24 21:43:40 +02:00
parent 282f4864c4
commit f15bb7a916
348 changed files with 59057 additions and 498 deletions

View File

@@ -0,0 +1,16 @@
using MealPlan.Api.DTOs.IngredientCatalog;
namespace MealPlan.Api.Services;
public interface IIngredientCatalogService
{
Task<IReadOnlyList<IngredientCategoryDto>> GetCategoriesAsync(CancellationToken ct = default);
Task<IReadOnlyList<IngredientNutritionItemDto>> GetItemsAsync(
string? categoryCode,
string? search,
CancellationToken ct = default);
Task<IngredientNutritionItemDto?> GetItemByIdAsync(int id, CancellationToken ct = default);
Task<IngredientNutritionItemDto?> CreateItemAsync(UpsertIngredientNutritionItemDto dto, CancellationToken ct = default);
Task<IngredientNutritionItemDto?> UpdateItemAsync(int id, UpsertIngredientNutritionItemDto dto, CancellationToken ct = default);
Task<bool> DeleteItemAsync(int id, CancellationToken ct = default);
}