Files
DailyMeals/MealPlan.Api/Services/IMealPlanService.cs
Piotr Kus f15bb7a916 * Extended functionalities
* Added different UIs
2026-06-24 21:43:40 +02:00

12 lines
584 B
C#

using MealPlan.Api.DTOs.MealPlan;
namespace MealPlan.Api.Services;
public interface IMealPlanService
{
Task<IReadOnlyList<MealPlanEntryDto>> GetEntriesAsync(Guid userId, DateOnly from, DateOnly to, CancellationToken ct = default);
Task<MealPlanEntryDto?> UpsertEntryAsync(Guid userId, UpsertMealPlanEntryDto dto, CancellationToken ct = default);
Task<bool> DeleteEntryAsync(Guid userId, int id, CancellationToken ct = default);
Task<IReadOnlyList<ShoppingListItemDto>> GetShoppingListAsync(Guid userId, DateOnly from, DateOnly to, CancellationToken ct = default);
}