-
Notifications
You must be signed in to change notification settings - Fork 1
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: 경험 목록 조회 API 구현(#42) #111
Conversation
} | ||
} | ||
|
||
private fun createExperienceDetailResponse(it: Experience): DetailExperience.Response { |
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.
이거 it으로 표현하니까 직관적이지가 않은 거 같은데 네이밍 수정해줄래?
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.
반영 완료!
.let { ExperienceYear.Response(it) } | ||
} | ||
|
||
fun getExperienceByYearAndParentTag(year: Int, parentTagId: UUID): List<DetailExperience.Response> { |
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.
dto가 리스트일때는 dto로 한번 더 감싸는거 어때?
data class Response(
val applyContentList: List<ContentInfo>
)
data class ContentInfo(
val question: String,
val answer: 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.
반영 완료~
@@ -18,6 +18,16 @@ class ExperienceController( | |||
private val experienceEditService: ExperienceEditService, | |||
private val experienceGetService: ExperienceGetService | |||
) { | |||
@GetMapping(ExperienceApi.BASE_URL) | |||
fun getExperienceByFilter(@RequestParam("year") year: Int, | |||
@RequestParam("parent-tag", required = false) parentTagId: UUID, |
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.
얘는 왜 ? 가 없나요오 그리구 ?연산자 사용하면 required = false
필요없긴 해
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.
반영 와와안료!
✨ PR 유형
어떤 변경 사항이 있나요??
🛠️ 작업내용
경험 목록 조회 API 구현
📋 추후 진행 사항
경험 검색 API 구현
📌 리뷰 요청 사항
조회하는 방식이 현재 각 Reader들을 가져와서 경험 내부에 들어갈 DTO들을 만드는 방식인데, 뭔가 코드가 길어지고 반복되는 느낌! 이것도 리팩토링 필요...