From d1e078b610e52e1e38540212b7ea78eace1b6ed3 Mon Sep 17 00:00:00 2001 From: jinnxyoung Date: Mon, 9 Sep 2024 14:49:05 +0900 Subject: [PATCH] =?UTF-8?q?[#197]=20refactor:=20=EB=AF=B8=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=20import=EB=AC=B8,=20Annotation=20=EB=AA=85=EC=8B=9C?= =?UTF-8?q?=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/portfolio/service/PortfolioService.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/java/com/gongjakso/server/domain/portfolio/service/PortfolioService.java b/src/main/java/com/gongjakso/server/domain/portfolio/service/PortfolioService.java index 8cd47950..eab6157e 100644 --- a/src/main/java/com/gongjakso/server/domain/portfolio/service/PortfolioService.java +++ b/src/main/java/com/gongjakso/server/domain/portfolio/service/PortfolioService.java @@ -1,22 +1,13 @@ package com.gongjakso.server.domain.portfolio.service; -import static com.gongjakso.server.domain.member.entity.QMember.member; - import com.gongjakso.server.domain.member.entity.Member; import com.gongjakso.server.domain.portfolio.dto.request.PortfolioReq; import com.gongjakso.server.domain.portfolio.dto.response.PortfolioRes; import com.gongjakso.server.domain.portfolio.entity.Portfolio; import com.gongjakso.server.domain.portfolio.vo.PortfolioData; -import com.gongjakso.server.domain.portfolio.vo.PortfolioData.Award; -import com.gongjakso.server.domain.portfolio.vo.PortfolioData.Activity; -import com.gongjakso.server.domain.portfolio.vo.PortfolioData.Certificate; -import com.gongjakso.server.domain.portfolio.vo.PortfolioData.Education; -import com.gongjakso.server.domain.portfolio.vo.PortfolioData.Sns; -import com.gongjakso.server.domain.portfolio.vo.PortfolioData.Work; import com.gongjakso.server.domain.portfolio.repository.PortfolioRepository; import com.gongjakso.server.global.exception.ApplicationException; import com.gongjakso.server.global.exception.ErrorCode; -import com.gongjakso.server.global.security.PrincipalDetails; import java.util.List; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; @@ -109,7 +100,6 @@ public PortfolioRes registerPortfolio(Member member, PortfolioReq portfolioReq) return PortfolioRes.from(savedPortfolio); } - @Transactional public PortfolioRes getPortfolio(Member member, Long portfolioId) { Portfolio portfolio = portfolioRepository.findByIdAndDeletedAtIsNull(portfolioId) .orElseThrow(() -> new ApplicationException(ErrorCode.PORTFOLIO_NOT_FOUND_EXCEPTION));