perf(recipe/dto): cambio a file la imagen de la receta en RecipeInputDto

parent 268816fd
......@@ -7,7 +7,9 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
import java.util.Set;
@Getter
......@@ -22,14 +24,14 @@ public class RecipeInputDto {
@NotBlank(message = "La descripción de la receta no puede estar en blanco")
private String description;
private String picture;
private MultipartFile picture;
@NotEmpty(message = "Debe incluir al menos un ingrediente")
@Valid
private Set<IngredientInputDto> ingredients;
private List<IngredientInputDto> ingredients;
@NotEmpty(message = "Debe incluir al menos un paso")
@Valid
private Set<StepInputDto> steps;
private List<StepInputDto> steps;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment