Api: π Modify the business logic of chat room creation #180
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}λ²μλ‘ νμ±νμ¬ μ λ¬)λ°κ²¬ν μ΄μ