Skip to content

Commit

Permalink
refactor: ImageService와 ImageUploader의 위치 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
hanueleee committed Aug 8, 2023
1 parent 183343a commit f56ea77
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.funeat.review.application;
package com.funeat.common;

import org.springframework.web.multipart.MultipartFile;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.funeat.review.application;
package com.funeat.common;

import java.io.IOException;
import java.nio.file.Files;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.funeat.recipe.dto.RecipeCreateRequest;
import com.funeat.recipe.persistence.RecipeImageRepository;
import com.funeat.recipe.persistence.RecipeRepository;
import com.funeat.review.application.ImageService;
import com.funeat.common.ImageService;
import java.util.List;
import java.util.Objects;
import org.springframework.stereotype.Service;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.funeat.review.application;

import com.funeat.common.ImageService;
import com.funeat.member.domain.Member;
import com.funeat.member.domain.favorite.ReviewFavorite;
import com.funeat.member.persistence.MemberRepository;
Expand Down Expand Up @@ -38,14 +39,12 @@ public class ReviewService {
private final MemberRepository memberRepository;
private final ProductRepository productRepository;
private final ReviewFavoriteRepository reviewFavoriteRepository;

private final ImageService imageService;

public ReviewService(final ReviewRepository reviewRepository, final TagRepository tagRepository,
final ReviewTagRepository reviewTagRepository, final MemberRepository memberRepository,
final ProductRepository productRepository,
final ReviewFavoriteRepository reviewFavoriteRepository,
final ImageService imageService) {
final ReviewFavoriteRepository reviewFavoriteRepository, final ImageService imageService) {
this.reviewRepository = reviewRepository;
this.tagRepository = tagRepository;
this.reviewTagRepository = reviewTagRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.funeat.common;

import com.funeat.review.application.ImageService;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
Expand Down

0 comments on commit f56ea77

Please sign in to comment.