Skip to content
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

[FEAT/#134] multipart 통신 구현 #147

Merged
merged 16 commits into from
Jan 23, 2025
Merged

Conversation

angryPodo
Copy link
Collaborator

Related issue 🛠

Work Description ✏️

  • 통곡의 멀티파트 구현

@angryPodo angryPodo requested a review from a team as a code owner January 23, 2025 09:27
@angryPodo angryPodo linked an issue Jan 23, 2025 that may be closed by this pull request
@angryPodo angryPodo self-assigned this Jan 23, 2025
@angryPodo angryPodo added 💙민재💙 💙민재💙 FEAT✨ 새로운 기능 구현 labels Jan 23, 2025
Copy link
Member

@Roel4990 Roel4990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~ 수고많으셨습니다~ 🚀🚀

Comment on lines 9 to 10
@SerialName("userId") val userId: Long,
@SerialName("title") val title: String,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@SerialName("userId") val userId: Long,
@SerialName("title") val title: String,
@SerialName("userId")
val userId: Long,
@SerialName("title")
val title: String,

P5: 이런식으로 작성하는건 어떨까요?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반영했습니다~

@angryPodo angryPodo changed the title feat/#134-register-multipart [FEAT/#134] multipart 통신 구현 Jan 23, 2025
…-multipart

# Conflicts:
#	app/src/main/java/com/spoony/spoony/data/service/PostService.kt
Copy link
Collaborator

@Hyobeen-Park Hyobeen-Park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~~

Copy link
Collaborator

@chattymin chattymin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!!!!!!!!!!!!!!!!!!!!
ㄹㅇ 고생하셨습니다!!!!!!!!!!!!!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p1) 패키지 위치가 앱잼이라 이상하네요~
추후 수정해주세요!! 토론 환영합니다

Comment on lines +69 to +74
val requestBody = jsonString.toRequestBody("application/json".toMediaType())

// 2. ContentUriRequestBody를 사용하여 이미지 변환
val photoParts = photos.map { uri ->
ContentUriRequestBody(context, uri).toFormData("photos")
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2) 상수추출 ㄱㄱ~

fun toFormData(name: String) = MultipartBody.Part.createFormData(name, getFileName(), this)

companion object {
const val IMAGE_SIZE_MB = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p5) 추후 서버측과 논의 후 수정 부탁드려요~~~

@angryPodo angryPodo merged commit 970447b into develop Jan 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT✨ 새로운 기능 구현 💙민재💙 💙민재💙
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 게시물 등록 API(멀티파트) 연결 및 구현
4 participants