-
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 #24
Conversation
@@ -14,7 +14,7 @@ | |||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | |||
@AllArgsConstructor(access = AccessLevel.PROTECTED) | |||
@Builder | |||
public class User extends AuditingTimeEntity { | |||
public class User extends AuditingTimeEntity { |
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.
여기 공백 생긴건가? 지워서 커밋해줘~~
public GetInviteCodeResponseDto getInvitation(Long userId) { | ||
|
||
Parentchild parentchild = parentchildDao.findByUserId(userId); | ||
|
||
return GetInviteCodeResponseDto.of(parentchild); | ||
} | ||
|
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가 2개의 Service에 나눠져 있구, 1개의 Controller에서 호출되고 있어가지구!
이거 어떻게 할지 회의좀 해봐야겠다!
@@ -67,4 +71,19 @@ public ApiResponse<SingleQnAResponseDto> getSingleQna( | |||
return ApiResponse.success(SuccessType.GET_SINGLE_QNA_SUCCESS, | |||
qnAService.getSingleQna(JwtProvider.getUserFromPrincial(principal), qnaId)); | |||
} | |||
|
|||
// TODO HomeController로 따로 뺄지? |
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.
내 개인적인 생각으로는 따로 빼는게 나을 것 같아!
|
||
@Slf4j | ||
@Repository | ||
public class QnADao { |
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.
기존에 있던 것도 이런식으로 참고해서 리팩토링 진행할게!
📌 관련 이슈
close #18
✨ 어떤 이유로 변경된 내용인지
🙏 검토 혹은 리뷰어에게 남기고 싶은 말