Skip to content

Commit

Permalink
[#197] refactor: 미사용 import문, Annotation 명시 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
jinnxyoung committed Sep 9, 2024
1 parent 4e035ad commit d1e078b
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit d1e078b

Please sign in to comment.