V025 migration drops the column. Removed from Recipe entity, RecipeDetailResponse, RecipeSummaryResponse, RecipeRepository JPQL, RecipeService, and RecipeController. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
803 B
Java
33 lines
803 B
Java
package com.recipeapp.recipe.dto;
|
|
|
|
import java.math.BigDecimal;
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
|
|
public record RecipeDetailResponse(
|
|
UUID id,
|
|
String name,
|
|
short serves,
|
|
short cookTimeMin,
|
|
String effort,
|
|
String heroImageUrl,
|
|
List<IngredientItem> ingredients,
|
|
List<StepItem> steps,
|
|
List<TagItem> tags
|
|
) {
|
|
public record IngredientItem(
|
|
UUID ingredientId,
|
|
String name,
|
|
CategoryRef category,
|
|
BigDecimal quantity,
|
|
String unit,
|
|
short sortOrder
|
|
) {}
|
|
|
|
public record CategoryRef(UUID id, String name) {}
|
|
|
|
public record StepItem(short stepNumber, String instruction) {}
|
|
|
|
public record TagItem(UUID id, String name, String tagType) {}
|
|
}
|