* Extended functionalities
* Added different UIs
This commit is contained in:
29
MealPlan.Api/DTOs/MealPlan/MealPlanDtos.cs
Normal file
29
MealPlan.Api/DTOs/MealPlan/MealPlanDtos.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace MealPlan.Api.DTOs.MealPlan;
|
||||
|
||||
public class MealPlanEntryDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateOnly PlanDate { get; set; }
|
||||
public int MealCategory { get; set; }
|
||||
public int RecipeId { get; set; }
|
||||
public string RecipeName { get; set; } = string.Empty;
|
||||
public decimal Portions { get; set; }
|
||||
public int? Calories { get; set; }
|
||||
}
|
||||
|
||||
public class UpsertMealPlanEntryDto
|
||||
{
|
||||
public DateOnly PlanDate { get; set; }
|
||||
public int MealCategory { get; set; }
|
||||
public int RecipeId { get; set; }
|
||||
public decimal Portions { get; set; } = 1m;
|
||||
}
|
||||
|
||||
public class ShoppingListItemDto
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Unit { get; set; }
|
||||
public decimal? TotalGrams { get; set; }
|
||||
public decimal? TotalAmount { get; set; }
|
||||
public IReadOnlyList<string> Breakdown { get; set; } = Array.Empty<string>();
|
||||
}
|
||||
Reference in New Issue
Block a user