-
Notifications
You must be signed in to change notification settings - Fork 1
feat: 문서 조언 및 문서 수정 API 개발 #36
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
Conversation
Walkthrough이 변경사항은 문서 업로드, 수정, 조언 제공 등 문서 처리 기능을 대폭 확장합니다. Flask 및 OpenAI 연동을 통한 AI 기반 분석, S3 파일 입출력, PDF/이미지 변환, 필드 매핑 등 다양한 서비스와 DTO가 추가 및 리팩토링되었습니다. 기존 폼 분석 로직도 FlaskService로 이동했습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DocumentController
participant DocumentService
participant FlaskService
participant PdfService
participant S3
participant OpenAiService
User->>DocumentController: POST /api/document (파일 업로드)
DocumentController->>DocumentService: uploadDocument(user, file)
DocumentService->>FlaskService: detectType(file, fileName)
DocumentService->>S3: 파일 업로드
DocumentService-->>DocumentController: UploadDocumentRes
User->>DocumentController: PUT /api/document/{id} (수정)
DocumentController->>DocumentService: rewriteDocument(user, id, req)
DocumentService->>S3: 이미지 다운로드
DocumentService->>FlaskService: getResFromModelForModify(file, fileName)
DocumentService->>PdfService: rewriteImg(s3ImageUrl, fields)
DocumentService->>S3: PDF 업로드
DocumentService-->>DocumentController: WriteDocsRes
User->>DocumentController: GET /api/document/{id}/advice
DocumentController->>DocumentService: getAdvice(user, id)
DocumentService->>S3: 이미지 다운로드
DocumentService->>FlaskService: getResFromModelForModify(file, fileName)
DocumentService->>OpenAiService: getModifyAnalyzeFromOpenAi(fields, docType)
OpenAiService-->>DocumentService: JSON 조언 결과
DocumentService-->>DocumentController: List<GetAdviceRes>
Poem
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (24)
💤 Files with no reviewable changes (1)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🔍 관련 이슈
✅ 작업 분류
✨ 작업 내용
✅ 체크리스트
Summary by CodeRabbit
신규 기능
버그 수정
UI/응답 변경
기타