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: Staff 두 언어 묶어서 동작하는 V2 API 정의 #301

Merged
merged 9 commits into from
Aug 1, 2024

Conversation

huGgW
Copy link
Collaborator

@huGgW huGgW commented Jul 28, 2024

Feat: Staff 두 언어 묶어서 동작하는 V2 API 정의

상세 설명

  • api 경로에 v1, v2 패키지로 구분, v1에는 기존 하나의 staff만 주는 get 관련 method 남김.
    • 프론트와 배포 시기가 일치하지 않아도 문제가 발생하지 않도록 처리
    • 프론트에 업데이트 시 /api/v2/staff 사용하도록 요청 필요
  • <member type, korean id, english id>를 저장하는 member_language 테이블 추가

TODO

  • professor에도 같은 로직 적용

Copy link

github-actions bot commented Jul 28, 2024

Test Results

12 files  12 suites   1s ⏱️
59 tests 59 ✔️ 0 💤 0
66 runs  66 ✔️ 0 💤 0

Results for commit 5f13cf0.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@leeeryboy leeeryboy 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 +64 to +65
val koreanStaffDto = createStaff(LanguageType.KO, createStaffLanguagesReqBody.ko, mainImage)
val englishStaffDto = createStaff(LanguageType.EN, createStaffLanguagesReqBody.en, mainImage)
Copy link
Contributor

Choose a reason for hiding this comment

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

createStaff에서 이미지 업로드 두번 될것 같은데 괜찮을까?

Comment on lines +172 to +173
val koStaffDto = updateStaff(koStaffId, updateStaffLanguagesReqBody.ko, newImage)
val enStaffDto = updateStaff(enStaffId, updateStaffLanguagesReqBody.en, newImage)
Copy link
Contributor

Choose a reason for hiding this comment

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

여기도 ??

@huGgW
Copy link
Collaborator Author

huGgW commented Jul 31, 2024

수정할까 했는데 생각보다 뜯어고쳐야 될게 많네 이미지 하나만 업로드되고 제거되게 하려면...
일단 이대로 머지하겠습니다...

@huGgW huGgW force-pushed the feat/combine_language/staff branch from 2df86fb to 5f13cf0 Compare July 31, 2024 17:07
@huGgW huGgW merged commit 14c5e5d into develop Aug 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants