-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[feat] 포트폴리오 삭제 로직 추가와 컬럼 수정
- Loading branch information
Showing
13 changed files
with
52 additions
and
59 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
src/main/java/land/leets/domain/image/exception/ImageSaveFailException.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/java/land/leets/domain/portfolio/usecase/UpdatePortfolios.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package land.leets.domain.portfolio.usecase; | ||
|
||
public interface UpdatePortfolios { | ||
void delete(Long portfolioId); | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/land/leets/domain/portfolio/usecase/UpdatePortfoliosImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package land.leets.domain.portfolio.usecase; | ||
|
||
import land.leets.domain.portfolio.domain.repository.PortfolioRepository; | ||
import land.leets.domain.portfolio.exception.PortfolioNotFoundException; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class UpdatePortfoliosImpl implements UpdatePortfolios { | ||
private final PortfolioRepository portfolioRepository; | ||
|
||
@Override | ||
public void delete(Long portfolioId) { | ||
if (!portfolioRepository.existsById(portfolioId)) { | ||
throw new PortfolioNotFoundException(); | ||
} | ||
portfolioRepository.deleteById(portfolioId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,4 +73,4 @@ target: | |
prod: ${TARGET_URL_PROD} | ||
|
||
image: | ||
path: ${IMAGE_PATH:/home/} | ||
path: src/main/resources/images/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.