Skip to content

Commit

Permalink
Merge pull request #217 from TrandPick/development
Browse files Browse the repository at this point in the history
refactor: NCP 엔드포인트 수정
  • Loading branch information
hye-0000 authored Jun 15, 2023
2 parents 7c8f96f + b4cb5eb commit 3afb981
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class FileTranslator {
@Value("${cloud.aws.s3.bucket}")
private String bucket;

@Value("https://kr.object.ncloudstorage.com/{cloud.aws.s3.bucket}/")
@Value("https://kr.object.ncloudstorage.com/{cloud.aws.s3.bucket}/images/")
private String filePath;

public String getFilePath(String filename) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,43 +1,36 @@
package project.trendpick_pro.domain.orders.service;

import jakarta.persistence.EntityNotFoundException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import project.trendpick_pro.domain.cart.entity.Cart;
import project.trendpick_pro.domain.cart.entity.CartItem;
import project.trendpick_pro.domain.cart.repository.CartRepository;
import project.trendpick_pro.domain.cart.service.CartService;
import project.trendpick_pro.domain.delivery.entity.Delivery;
import project.trendpick_pro.domain.delivery.entity.DeliveryState;
import project.trendpick_pro.domain.member.entity.dto.MemberInfoDto;
import project.trendpick_pro.domain.member.exception.MemberNotMatchException;
import project.trendpick_pro.domain.orders.entity.dto.request.OrderForm;
import project.trendpick_pro.domain.orders.entity.dto.response.OrderDetailResponse;
import project.trendpick_pro.domain.orders.entity.dto.response.OrderItemDto;
import project.trendpick_pro.domain.orders.entity.dto.response.OrderResponse;
import project.trendpick_pro.domain.product.entity.form.ProductOptionForm;
import project.trendpick_pro.domain.tags.favoritetag.service.FavoriteTagService;
import project.trendpick_pro.domain.member.entity.Member;
import project.trendpick_pro.domain.member.repository.MemberRepository;
import project.trendpick_pro.domain.member.entity.dto.MemberInfoDto;
import project.trendpick_pro.domain.orders.entity.Order;
import project.trendpick_pro.domain.orders.entity.OrderItem;
import project.trendpick_pro.domain.orders.entity.OrderStatus;
import project.trendpick_pro.domain.orders.entity.dto.request.OrderForm;
import project.trendpick_pro.domain.orders.entity.dto.request.OrderSearchCond;
import project.trendpick_pro.domain.product.exception.ProductStockOutException;
import project.trendpick_pro.domain.orders.entity.dto.response.OrderDetailResponse;
import project.trendpick_pro.domain.orders.entity.dto.response.OrderItemDto;
import project.trendpick_pro.domain.orders.entity.dto.response.OrderResponse;
import project.trendpick_pro.domain.orders.repository.OrderRepository;
import project.trendpick_pro.domain.product.entity.Product;
import project.trendpick_pro.domain.product.entity.form.ProductOptionForm;
import project.trendpick_pro.domain.product.exception.ProductNotFoundException;
import project.trendpick_pro.domain.product.repository.ProductRepository;
import project.trendpick_pro.domain.tags.favoritetag.service.FavoriteTagService;
import project.trendpick_pro.domain.tags.tag.entity.type.TagType;
import project.trendpick_pro.global.rsData.RsData;

import java.util.ArrayList;
import java.util.List;
import java.util.Optional;

@Slf4j
@Service
Expand All @@ -46,7 +39,6 @@
public class OrderService {
private final CartService cartService;
private final OrderRepository orderRepository;
private final MemberRepository memberRepository;
private final ProductRepository productRepository;
private final FavoriteTagService favoriteTagService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class ProductService {
@Value("${cloud.aws.s3.bucket}")
private String bucket;

@Value("https://kr.object.ncloudstorage.com/{cloud.aws.s3.bucket}/")
@Value("https://kr.object.ncloudstorage.com/{cloud.aws.s3.bucket}/images/")
private String filePath;

public Product findById(Long id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
@Transactional(readOnly = true)
@RequiredArgsConstructor
public class RecommendService {

private final RecommendRepository recommendRepository;
private final ProductService productService;
private final MemberRepository memberRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class ReviewService {
@Value("${cloud.aws.s3.bucket}")
private String bucket;

@Value("https://kr.object.ncloudstorage.com/{cloud.aws.s3.bucket}/")
@Value("https://kr.object.ncloudstorage.com/{cloud.aws.s3.bucket}/images/")
private String filePath;


Expand Down

0 comments on commit 3afb981

Please sign in to comment.