-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~ 수고많으셨습니다~ 🚀🚀
@SerialName("userId") val userId: Long, | ||
@SerialName("title") val title: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SerialName("userId") val userId: Long, | |
@SerialName("title") val title: String, | |
@SerialName("userId") | |
val userId: Long, | |
@SerialName("title") | |
val title: String, |
P5: 이런식으로 작성하는건 어떨까요?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영했습니다~
…-multipart # Conflicts: # app/src/main/java/com/spoony/spoony/data/service/PostService.kt
…-multipart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!!!!!!!!!!!!!!!!!!!!
ㄹㅇ 고생하셨습니다!!!!!!!!!!!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p1) 패키지 위치가 앱잼이라 이상하네요~
추후 수정해주세요!! 토론 환영합니다
val requestBody = jsonString.toRequestBody("application/json".toMediaType()) | ||
|
||
// 2. ContentUriRequestBody를 사용하여 이미지 변환 | ||
val photoParts = photos.map { uri -> | ||
ContentUriRequestBody(context, uri).toFormData("photos") | ||
} |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5) 추후 서버측과 논의 후 수정 부탁드려요~~~
…-multipart
Related issue 🛠
Work Description ✏️