-
Notifications
You must be signed in to change notification settings - Fork 3
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: get personal Pick Paging mockApi #46
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.
๋ช๊ฐ์ง ์๊ฒฌ ๋จ๊ฒผ์ต๋๋ค! ์๊ณ ํ์ จ์ต๋๋ค
val platformOpen = pick.isPlatformOpen | ||
val secondInitialNameOpen = pick.isSecondInitialNameOpen | ||
val fullNameOpen = pick.isFullNameOpen | ||
val pickerIdOpen = fullNameOpen && genderOpen && platformOpen && secondInitialNameOpen |
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.
์ด์ ์ ๊ธฐํ ํ์ ๋ ์๊ธฐํ๋ ๊ฒ ๊ฐ์๋ฐ fullName ์๋ฉด ์ ์ฒด ๋ค ์คํ๋ ๊ฑฐ๋ ๋์ผํ๋ค๊ณ ํ๋ ๊ฒ ๊ฐ์์
fullNameOpen || (genderOpen && platformOpen && secondInitialNameOpen)
๋ก ํด์ผํ์ง ์์๊น ์ถ์๋ฐ
์ด๋ป๊ฒ ์๊ฐํ์๋์!?
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.
๋ต ์ ๋ fullNameOpen || (genderOpen && platformOpen && secondInitialNameOpen)
๊ฐ ๋ง๋ค๊ณ ์๊ฐํฉ๋๋ค.
Pick domain์ fullNameOpen์ด ์์ด์ ํฝ์ด ์์ฑ, ์์ ๋ ๋ ๋ง๋ค fullNameOpen ํ๋๋ฅผ ์ถ๊ฐ๋ก Entity์์ ๊ฐ์ง ๊ฒ ๊ฐ์์ ๊ฐ์ ธ์ค๋ ๋ฐฉ์์ผ๋ก ํ์ต๋๋ค.
์ ์ฅํ ๋ funllNameOpen ํ๋๋ฅผ ์ถ๊ฐ๋ก ๋์ด ์ ์ฅํ๊ฑฐ๋ ๊ฐ์ ธ์ฌ ๋ ์ฐ์ฐํ๊ฑฐ๋ ์ ํฌ๋ผ๋ฆฌ ์ ํ๋ฉด ์ข์ ๊ฒ ๊ฐ์์~
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.
์ค ๊ทธ๊ฒ๋ ์ข์ ๊ฒ ๊ฐ์์. ์ ์ฅํ ๋ service ๋ด์์ ์ฐ์ฐ, ์ ์ฅํ๊ณ usecase์์ ๊บผ๋ด๋ ๋ฐฉ์์ผ๋ก ์์ ํ๋ ๊ฒ๋ ์ข์ ๊ฒ ๊ฐ์์~!
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.
๊ณ ์ํ์ จ์ต๋๋ค! ์๊ฒฌ ๋ช๊ฐ์ง ๋จใฑ๋์์ด์~
responses = [ | ||
ApiResponse(responseCode = "200", description = "๋ด๊ฐ ๋ฐ์ ํฝ ์ค ํน์ ์ง๋ฌธ์ ํ์ด์ง") |
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.
ํจ์ ์ด๋ฆ์ getPickDetail ์ด๋ผ ํน์ ํฝ์ ์์ธ ์ ๋ณด๋ฅผ ๋ฐํํ๋ ๋ฉ์๋(๋ง์น pick Id๋ฅผ ๋ฐ๊ณ ํด๋น pick์ ๋ณด๋ฅผ ๋ฐํํ๋ ๊ฒ ๊ฐ์,,)๋ก ์ดํดํ๋๋ฐ ๋ด๋ถ๋ ํ์ด์ง(list)์ด๋ผ ํท๊ฐ๋ฆฌ๋ ๊ฒ ๊ฐ์์ ๐ค
"ํน์ ์ง๋ฌธ์ ํ์ด์ง" ํ๋ค ๋ผ๋ ์ ์๋ ์ดํด๊ฐ ์ ์๊ฐ๋๋ฐ ์ค๋ช ํ ๋ฒ ๋ถํ๋๋ ค๋ ๋๋์?
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.
์ด๊ฒ ์ ๋ง ๊ณ ๋ฏผ์ด ๋ง์๋ ๊ฑด๋ฐ, ์ด๋ฒ ํ์ ๋ ์๊ธฐ๋๋ ๋ณด๋ฉด ์ข์ ๊ฒ ๊ฐ์์.
์ฒ์์๋ "๋จ์ ๊ฒ์ํ ๋ชฉ๋ก, ๊ฒ์ํ ์กฐํ์ฒ๋ผ /{pickId}๋ก ์กฐํํ๋ฉด ๋๊ฒ ์ง?" ๋ผ๊ณ ์๊ฐํ์ด์.
ํ์ง๋ง ์ฒซ๋ฒ์งธ ์ฌ์ง์์ ์ค๋ฅธ์ชฝ ์ฌ์ง์ผ๋ก ๋์ด๊ฐ ๋ ๋์ ์ฑ๊ฒฉ์ด ๋ฌ๋์ด์.
์ด๋ ๊ฒ ๋์ ์ฑ๊ฒฉ์ด ๋ค๋ฅด๊ธฐ ๋๋ฌธ์, ๋ฐ์ ํฝ์ ๋ณด์ฌ์ฃผ๋ ํ์ด์ง์์ ํน์ ํฝ์ ์ง๋ฌธId์, memberId๋ก ๊ฒ์ํด์ผํ๋ค๊ณ ์๊ฐํ์ด์.
๋ค๋ฅธ ์ข์ ๋ฐฉ๋ฒ์ด ์๋์ง ํจ๊ป ์๊ธฐํด๋ณด๋ฉด ์ข์ ๊ฒ ๊ฐ์์~~!
์ผ์ชฝ์ ๋ณธ์ธ์ด ๋ฐ์ ํฝ์ ๋ณด์ฌ์ฃผ๋ ํ์ด์ง(์ง๋ฌธ ์ค๋ณต ๊ฐ๋ฅ)
์ค๋ฅธ์ชฝ์ ๋ณธ์ธ์ด ๋ฐ์ ํฝ๋ค ์ค ํน์ ์ง๋ฌธ์ ๋ํ ํฝ ํ์ด์ง
@RequestParam(required = false, defaultValue = "0") pageNumber: Int, | ||
): DojoApiResponse<PickPaging> { | ||
val pickPaging: PickUseCase.GetPagingPick = | ||
pickUseCase.getReceivedPickDetailPaging(PickUseCase.GetPagingPickCommand(MemberId("1"), QuestionId(questionId), pageNumber)) |
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.
์ง๊ธ์ MemberId("1") ์ด๋ผ๋ invalidํ ์์๊ฐ์ผ๋ก ํ๋ผ๋ฏธํฐ๋ฅผ ๋๊ฒจ์ฃผ๊ณ ์๋๋ฐ ์๊ฑฐ ์ถํ์ ๊ณ ์น ๊ฑฐ๋ผ๋ฉด Todo ๋ผ๋ ๋ถ์ฌ์ค์ผ ๋์ค์ ์ฑ๊ฒจ์ง ๊ฒ ๊ฐ์์!!
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.
์ํ ๋ต๋ต ๋ฐ์ํ๊ฒ ์ต๋๋ค~!
/*val pickList: List<Pick> = pickRepository.findAllByMemberId(pickedMemberId) | ||
.map { PickEnity.buildDomain() }*/ | ||
return listOf(DEFAULT_PICK) |
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.
์๋ฐ๊ฒ๋ Todo ๋ถ์ฌ๋์ผ ๋์ค์ ์ฑ๊ธธ ์ ์์ ๊ฒ ๊ฐ์์ฉ
@@ -16,7 +16,7 @@ import java.time.LocalDateTime | |||
interface MemberService { | |||
fun getCandidates(currentMemberId: MemberId): List<Candidate> | |||
|
|||
fun findMemberById(memberId: MemberId): Member | |||
fun findMemberById(memberId: MemberId): Member? |
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๋ค์ด๊ฐ๋ฉด ์ปจํ๋ฆญํธ ๋ ์ง๋ ใ
(์ PR์์๋ ๊ณ ์ณค์์)
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 3๊ฐ๊ฐ ๋ค ๊ฒน์น๋ค์
val platformOpen = pick.isPlatformOpen | ||
val secondInitialNameOpen = pick.isSecondInitialNameOpen | ||
val fullNameOpen = pick.isFullNameOpen | ||
val pickerIdOpen = fullNameOpen && genderOpen && platformOpen && secondInitialNameOpen |
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.
์ค.. ์ ๋ ๋ณ๊ฐ ์ง๋ฌธ์ธ๋ฐ์. ์ด๊ฑฐ ์ ์ฆ์ผ์ด์ค ๋ก์ง์์ ์ธ๋ถ์ ์ธ ์ ์ฑ ์ ๋ฃ์ผ๋ฉด, ์ถํ ๋ก์ง์ด ์ด๊ณณ์ ๊ณณ์์ ์ฐ์ฌ์ผํ ๋ ๊ณจ์นซ๊ฑฐ๋ฆฌ๊ฐ ๋ ๊ฒ ๊ฐ์์. ์๋น์ค ๋ ์ด์ด / ๋๋ฉ์ธ ๋ก์ง์ผ๋ก ๋ด๋ ค๋ฒ๋ฆฌ๋๊ฑด ์ด๋ ์ธ์?~
60deef3
to
27bb614
Compare
[add] pr template
์์ ๋ด์ฉ
๊ฐ์ธ, ํน์ ์ง๋ฌธ์ ๋ํ ํฝ์ ์กฐํํ๊ธฐ ์ํด QuestionId๋ฅผ queryParamter๋ก ๋ฐ๊ณ , MemberId์ ํจ๊ป ๊ฒ์ํ์ฌ ํ์ด์งํ๋ Mock Api๋ฅผ ์์ฑํ์ต๋๋ค.
๋น๊ณ (์ฒจ๋ถ์๋ฃ)