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/#79] 모델 지원서 작성 API #102

Merged
merged 22 commits into from
Jan 12, 2024
Merged

[Feat/#79] 모델 지원서 작성 API #102

merged 22 commits into from
Jan 12, 2024

Conversation

hellozo0
Copy link
Member

관련 이슈번호

해결하는 데 얼마나 걸렸나요? (예상 작업 시간 / 실제 작업 시간)

  • 3h / 9h..?

해결하려는 문제가 무엇인가요?

  • Form Data로 데이터를 받는데 List 안에 객체를 받아서 가져올 수 없는 문제가 있었다.
  • 그리고 Form Data의 List 가 "" String 안에 들어오는 문제가 생겼었다. 아래의 리스트가 스트링 형태로 넘어와서 데이터를 바인딩해서 원하는 형태로 바꿔주는 함수를 작성했다..
[
   {"hairService": "PERM", "hairServiceTerm": "UNDER_ONE"},
   { "hairService": "BLACK", "hairServiceTerm": "ABOVE_TWELVE"}
]

어떻게 해결했나요?

  • 위와 같이..

@hellozo0 hellozo0 added the feat label Jan 11, 2024
@hellozo0 hellozo0 requested review from KWY0218 and pkl0912 January 11, 2024 18:46
@hellozo0 hellozo0 self-assigned this Jan 11, 2024
Copy link
Member

@KWY0218 KWY0218 left a comment

Choose a reason for hiding this comment

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

작업하시느라 고생하셨습니다!
코맨트 확인해주세요!

Comment on lines 29 to 32
public String uploadApplicationModelImage(MultipartFile multipartFile, Role role){
return uploadImage(multipartFile, APPLICATION_PATH + "/" + role.name());
}

Copy link
Member

Choose a reason for hiding this comment

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

p2
해당 함수를 사용하지 않아도 위 uploadProfileImage 함수를 사용하면 알아서 업로드 됩니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

아하 그렇군요! 혹시나 경로 더 나눠서 저장해야하는 줄 알고 만들었는데 기존 함수 쓰겠습니다~!

Comment on lines 35 to 36
private static final String ORIGIN = "origin";

Copy link
Member

Choose a reason for hiding this comment

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

p2
해당 상수는 사용하지 않은 것 같아 보입니다..!
혹시 추가하신 이유가 있을까요?

Copy link
Member Author

Choose a reason for hiding this comment

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

기존에 있길래 사용하긴 했는데요....... 삭제하겠습니다~!

Copy link
Contributor

@pkl0912 pkl0912 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
Member

@KWY0218 KWY0218 left a comment

Choose a reason for hiding this comment

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

좋습니다 ~ ! 👍

@hellozo0 hellozo0 merged commit 4b43397 into develop Jan 12, 2024
1 check passed
@hellozo0 hellozo0 deleted the feat/#79 branch January 12, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 모델 뷰- 모델 지원서 작성하기 API
3 participants