-
Notifications
You must be signed in to change notification settings - Fork 0
[FEAT]: 시나리오 AI 이미지 생성 기능 구현 #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4b5cfd4
[Refactor] 쓰레드풀 작동가능하게 구현
johnbosco0414 5fca981
Merge branch 'main' of https://github.com/prgrms-web-devcourse-final-…
johnbosco0414 08acab0
[ãㄹFeat] AI 이미지생성구현체 추가
johnbosco0414 69c6585
[Feat] AI이미지생성핵심로직구현
johnbosco0414 ad00d97
[Test] AIí이미지생성테스트코드작성
johnbosco0414 4c0bbbd
Merge branch 'main' of https://github.com/prgrms-web-devcourse-final-…
johnbosco0414 f8bcdaf
[Refactor] 잠재적이슈해결
johnbosco0414 d4cfebd
[Refactor] 예외A처AiServiceImpl 예외처리수정
johnbosco0414 b07fdce
[Refactor] 로컬이미지ë경로설정
johnbosco0414 373faa8
[Refactor] minor변경
johnbosco0414 91da66a
[Refactor] .gitignore 추가
johnbosco0414 6ade27c
[Refactor] 코드리뷰반영
johnbosco0414 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
30 changes: 30 additions & 0 deletions
30
back/src/main/java/com/back/domain/scenario/dto/AiScenarioGenerationResult.java
This file contains hidden or 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,30 @@ | ||
| package com.back.domain.scenario.dto; | ||
|
|
||
| import com.back.global.ai.dto.result.BaseScenarioResult; | ||
| import com.back.global.ai.dto.result.DecisionScenarioResult; | ||
| import lombok.Getter; | ||
|
|
||
| /** | ||
| * AI 시나리오 생성 결과를 담는 래퍼 클래스. | ||
| * 트랜잭션 분리를 위해 베이스 시나리오와 결정 시나리오 결과를 구분하여 전달합니다. | ||
| */ | ||
| @Getter | ||
| public class AiScenarioGenerationResult { | ||
| private final boolean isBaseScenario; | ||
| private final BaseScenarioResult baseResult; | ||
| private final DecisionScenarioResult decisionResult; | ||
|
|
||
| // 베이스 시나리오용 생성자 | ||
| public AiScenarioGenerationResult(BaseScenarioResult baseResult) { | ||
| this.isBaseScenario = true; | ||
| this.baseResult = baseResult; | ||
| this.decisionResult = null; | ||
| } | ||
|
|
||
| // 결정 시나리오용 생성자 | ||
| public AiScenarioGenerationResult(DecisionScenarioResult decisionResult) { | ||
| this.isBaseScenario = false; | ||
| this.baseResult = null; | ||
| this.decisionResult = decisionResult; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uniqueConstraints 생성 시에 유니크 속성으로 인해서 인덱스가 만들어지게 돼요.
이 부분
@Index(name = "idx_scenario_decision_line", columnList = "decision_line_id")은 지워도 무방할 것 같습니다!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영했습니다! 리뷰 감사드립니다 :)