-
Notifications
You must be signed in to change notification settings - Fork 0
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, 참가중인 챌린지 조회 API 수정 #270
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.
LGTM 👍🏽
participation.getMyTopic(), | ||
participation.getInsightPerWeek(), | ||
participation.getDuration(), | ||
participation.getEndDate().toString(), |
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.
이미 존재하는 API같은데, 왜 변경되는거에요?
이 API를 여러곳에서 쓰나요?
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.
챌린지 홈에서 쓰고 있어요. 참가중인 챌린지 정보를 조회하는데 홈이냐 상세이냐에 따라 API를 구분하는게 이상해서 변경으로 진행했어요.
private String interest; | ||
private String myTopic; | ||
private int insightPerWeek; | ||
private int duration; |
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.
duration이 화면의 뭘 의미하는건지 잘 모르겠어요.
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.
화면에서는 참가 기간이에요. 매주 3번 기록 x 4주
여기서 {4}주 에 해당돼요
ChallengeParticipation participation = challengeParticipateQueryDomainService.getCurrentChallengeParticipation(SecurityUtil.getUser()); | ||
ParticipationUpdateDto dto = challengeAssembler.toParticipationUpdateDto(request); | ||
challengeCommandDomainService.updateParticipation(participation, dto); |
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를 따로 만든김에 participation 정보를 포함해서 뭉치는게 좋지않을까요?
혹은 domain service에서 조회하는 것도 고려할 수 있을거같아요~
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.
userId를 포함시키는 방법으로 생각해볼게요
테스트통과 🤖 |
테스트통과 🤖 |
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.
나에게는 좋아 보인다 👍
관련 Issue
작업 내용
Figma 링크