Feat/#387 ai api 연동#394
Open
juri123123 wants to merge 7 commits intodevelopfrom
Hidden character warning
The head ref may contain hidden characters: "feat/#387-ai-api-\uc5f0\ub3d9"
Open
Conversation
1 task
dev-domo
approved these changes
Mar 5, 2026
| } | ||
|
|
||
| func fetchAIAnswer(questID: Int, isAnswerExists: Bool) async throws -> AIAnswerEntity { | ||
| try await Task.sleep(for: .seconds(2)) |
Collaborator
There was a problem hiding this comment.
의도적으로 Task.sleep을 실행하는 건가요?
|
|
||
| extension AIAnswerEntity { | ||
| static func stub() -> Self { | ||
| return .init(AIAnswer: "어 나 AI인데 힘내라") |
|
|
||
| private var questID: Int = 1 | ||
| private var isAIAnswerExists: Bool = false | ||
| private var answerState: AIAnswerState = .loading |
Collaborator
There was a problem hiding this comment.
이 answerState 변수는 언제 활용되나요?
| .stub() | ||
| } | ||
|
|
||
| func createAIAnswer(questID: Int) async throws -> AIAnswerEntity { |
Collaborator
There was a problem hiding this comment.
isAnswerExists에 따른 AI 답변 생성/조회를 하나의 유스케이스로 관리하시는거죠? createAIAnswer는 private 메서드로 바꿔도 될 것 같습니다!
| do { | ||
| AILoadingSubject.send(true) | ||
|
|
||
| let answer = try await fetchAIAnswerUseCase.execute( |
y-eonee
approved these changes
Mar 5, 2026
| switch self { | ||
| case .checkQuest, .recording, .active, .tip, .images, .answer, .progressingQuests, .fetchCompletedJourney, | ||
| .postJourney, .completedQuests, .editRecording, .editActive: | ||
| default: |
|
|
||
| extension AIAnswerEntity { | ||
| static func stub() -> Self { | ||
| return .init(AIAnswer: "어 나 AI인데 힘내라") |
| private let photoBoxView: UIImageView? | ||
| private let feelView = FeelView(emotionType: "", descriptionText: "") | ||
| private let AIAnswerButton = ByeBooButton( | ||
| let AIAnswerButton = ByeBooButton( |
Collaborator
There was a problem hiding this comment.
이거슨 왜 접근제어자가 intenral이 되었나용
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🔗 연결된 이슈
📄 작업 내용
💻 주요 코드 설명