-
Notifications
You must be signed in to change notification settings - Fork 1
[DPMBE-68] 유저 프로필 이미지 업로드 기능을 만든다 #89
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
Kudos, SonarCloud Quality Gate passed! |
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
추가적으로 업로드 url에
개발환경, 프로덕션 환경에 따른 구분이 되어있을까유?
버킷이 다른감
두둥은 버킷 하나에
prod/user/userid/~
dev/user/userid/~
이런식으로 구성하긴 했었어요!
버킷이 환경변수여서 버킷별로 구분하면 될거같아요! |
companion object { | ||
fun createForPromise(userId: Long, promiseId: Long, url: String, uuid: String, pictureCommentType: PictureCommentType): Picture { | ||
return Picture( | ||
userId = userId, | ||
promiseId = promiseId, | ||
url = url, | ||
uuid = uuid, | ||
pictureType = PictureType.PROMISE, | ||
pictureCommentType = pictureCommentType, | ||
) | ||
} | ||
|
||
fun createForUser(userId: Long, url: String, uuid: String): Picture { | ||
return Picture( | ||
userId = userId, | ||
promiseId = 0, | ||
url = url, | ||
uuid = uuid, | ||
pictureType = PictureType.USER, | ||
pictureCommentType = PictureCommentType.NONE, | ||
) | ||
} | ||
} | ||
|
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.
동행객체가 뭔가요?
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.
static 코틀린에서는 못만들어서 class 안에서 선언할 떄 저렇게 선언하는건데용
Picture 생성하는거 펙토리 메소드로 뺀거죠?
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.
LGTM~
enum class PictureType { | ||
PROMISE, USER | ||
} |
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.
일단 인터랙션은 프론트에서 따로 하니까 미디어로 2가지로만 한거죠?
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.
네넵
* feat: 유저 프로필 presignedUrl 발급 기능 추가 * test: 유저 프로필 presignedUrl 발급 기능 테스트 코드 추가 * feat: 유저 프로필 업로드 성공 확인 기능 추가 * test: 유저 프로필 업로드 성공 확인 기능 테스트 코드 추가 * style: spotless
개요
작업사항
변경로직