-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat/upload image when signup] - 회원가입시 이미지 함께 전송 #74
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
WalkthroughThis set of changes introduces multipart file upload support for user signup, enabling users to upload a profile image during registration. The signup API endpoint is updated to accept multipart/form-data, with the profile image sent as a file and other data as a JSON string parameter. Supporting changes include a new converter for deserializing JSON strings to request objects, a new file storage service for handling uploads to AWS S3, and updates to S3 integration for direct file uploads. Related configuration, enums, and tests are also updated to accommodate and validate the new file upload functionality. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant AuthController
participant AuthSignupConverter
participant FileStorageService
participant S3Service
participant SignUpUsecaseImpl
Client->>AuthController: POST /signup (multipart/form-data: request, profileImage)
AuthController->>AuthSignupConverter: Convert request (JSON String) to AuthSignupRequest
AuthController->>SignUpUsecaseImpl: signupAndLogin(AuthSignupRequest, profileImage)
SignUpUsecaseImpl->>FileStorageService: storeFile(profileImage)
FileStorageService->>S3Service: uploadFile(profileImage)
S3Service-->>FileStorageService: file URL
FileStorageService-->>SignUpUsecaseImpl: file URL
SignUpUsecaseImpl-->>AuthController: SignupUserResponse
AuthController-->>Client: SuccessResponse<SignupUserResponse>
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (16)
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
New Features
Bug Fixes
Chores