-
Notifications
You must be signed in to change notification settings - Fork 1
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
Api: π Modify the business logic of chat room creation #180
Merged
Conversation
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
psychology50
added
bug
κΈ΄κΈνκ³ , μ€μλκ° λμ μ΄μ
fix
κΈ°λ₯ μμ
labels
Oct 19, 2024
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.
μμ μ΄μ
chatroom_id
λ μ±ν λ°© μμ± μ κΉμ§ λΉκ²°μ μ μΈ μμchatroom_id
λ₯Ό ν΅ν΄ μ΄λ―Έμ§λ₯Ό μ μ₯νκ³ , S3 μ μ₯ μ΄ν μ±ν λ°© μμ± νμ μμ²μ 보λ΄λ 2λ¨κ³λ‘ ꡬμ±μμ μ¬ν
1οΈβ£ Presigned Url λ°κΈ λ‘μ§ μμ
feed_id
μchat_id
쿼리 μμ user_id
λ κ°μ΄ μ΄λ―Έ μ ν΄μ Έ μμΌλ―λ‘, μ¬μ©μ μμ΄λλ₯Ό μ¬μ©feed_id
λ λΉκ²°μ μ μμμ΄λ―λ‘, UUIDλ‘ μμ ν€ λ°κΈchatroom_id
λ λΉκ²°μ μ μμμ΄λ―λ‘, UUIDλ‘ μμ ν€ λ°κΈuser_id
,chatroom_id
λͺ¨λ μ ν΄μ Έ μμΌλ―λ‘, ν΄λΌμ΄μΈνΈμκ² λ°μμΌ ν¨.chatroom_id
λ ν΄λΌμ΄μΈνΈμκ² λ°κ³ ,chat_id
λ UUIDλ‘ μμ ν€ λ°κΈ2οΈβ£ μ±ν λ°© μμ± μ»¨νΈλ‘€λ¬ μμ
deleteUrl
μoriginUrl
λ‘ μΉννκΈ° μν΄μ, Service λ‘μ§μμ TSID κΈ°λ° IDλ₯Ό μμ± ν S3Adapterλ‘ μ λ¬. -> λ³κ²½λμ΄μΌ ν μμκ° λ¬΄μμΈμ§ μλ €μ£Όμ΄μΌ ν¨.ActualIdProvider
λ₯Ό μ¬μ©νμ¬, ν΄λΌμ΄μΈνΈκ° λ¬Έμμ΄ μμ‘΄μ μΈ ν€μ S3 μ μ± μΈλΆμ¬νμ λν κ΄μ¬μ μ€μΌ μ μκ² μμ .리뷰μ΄κ° μ€μ μ μΌλ‘ νμΈν΄μΌ νλ λΆλΆ
λ³κ²½λ μ±ν λ°© μμ± νλ‘μ°λ λ€μκ³Ό κ°μ΅λλ€.
GET /v1/storage/presigend-url
μμ²μΌλ‘, μμ μ μ₯ κ²½λ‘ μμPUT {S3 presigned url}
μμ²μΌλ‘ μ¬μ§ μ μ₯.POST /v2/chat-rooms
λ‘ μ λ¬. (urlμ/delete/~.{ext}
λ²μλ‘ νμ±νμ¬ μ λ¬)λ°κ²¬ν μ΄μ