feat(mapper): creados mappers de Ingredient y Step y añadida función de File a…

feat(mapper): creados mappers de Ingredient y Step y añadida función de File a String en RecipeMapper
parent 12936989
package com.example.apprecetas.recipe.infrastructure.mapper;
import com.example.apprecetas.recipe.domain.entity.Ingredient;
import com.example.apprecetas.recipe.infrastructure.controller.dto.input.IngredientInputDto;
import org.mapstruct.Mapper;
@Mapper
public interface IngredientMapper {
Ingredient map(IngredientInputDto ingredientInputDto);
}
......@@ -7,6 +7,7 @@ import com.example.apprecetas.recipe.infrastructure.controller.dto.output.Recipe
import com.example.apprecetas.recipe.infrastructure.controller.dto.output.RecipeSummaryOutputDto;
import com.example.apprecetas.recipe.infrastructure.repository.mongodb.RecipeDocument;
import org.mapstruct.Mapper;
import org.springframework.web.multipart.MultipartFile;
@Mapper
public interface RecipeMapper {
......@@ -22,4 +23,6 @@ public interface RecipeMapper {
RecipeSummaryOutputDto mapSummary(Recipe recipe);
RecipeListDto mapList(Recipe recipe);
String map(MultipartFile value);
}
package com.example.apprecetas.recipe.infrastructure.mapper;
import com.example.apprecetas.recipe.domain.entity.Step;
import com.example.apprecetas.recipe.infrastructure.controller.dto.input.StepInputDto;
import org.mapstruct.Mapper;
@Mapper
public interface StepMapper {
Step map(StepInputDto stepInputDto);
}
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