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

Feature/#23 EPS, PER, 시가총액 등 주식 상세 정보 기능 추가 #156

Merged
merged 10 commits into from
Nov 14, 2024

Conversation

demian-m00n
Copy link
Contributor

close #23

✅ 작업 내용

  • StockDetail 엔티티 정의
  • 이전 기능 코드 리뷰 반영
  • StockDetail 응답 DTO 추가
  • StockDetailService 추가 및 구현
  • StockController 엔드포인트 구현
  • StockDetailServcie 테스트 추가

✍ 궁금한 점

  • 클라이언트와 통신을 위해 조회하는 부분에 대해서만 작업하는 데 추가하는 부분은 어떻게 할 것인지?

😎 체크 사항

  • label 설정 확인
  • 브랜치 방향 확인

@demian-m00n demian-m00n added the ✨feature 기능 개발 label Nov 12, 2024
@demian-m00n demian-m00n requested a review from a team November 12, 2024 15:32
@demian-m00n demian-m00n self-assigned this Nov 12, 2024
Copy link
Collaborator

@xjfcnfw3 xjfcnfw3 left a comment

Choose a reason for hiding this comment

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

image

})
@ApiOkResponse({
description: '주식 상세 정보 조회 성공',
example: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

example 대신에 type: StockDetailResponse를 사용하면 StockDetailResponsed에서 설정한 example 값이 스웨거에 출력됩니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

감사합니다! 반영 완료했습니다!

expect(managerMock.findBy).toHaveBeenCalledWith(StockDetail, {
stock: { id: stockId },
});
expect(result).toBeInstanceOf(StockDetailResponse);
Copy link
Collaborator

Choose a reason for hiding this comment

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

instanceOf도 체크하시는 이유가 궁금합니다!

Copy link
Collaborator

Choose a reason for hiding this comment

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

너무 많은 것을 검증하려고 하면 오히려 리펙토링 내성이 약해질 우려가 있어서 질문했습니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

이 부분 피드백 감사합니다! 반영 완료했습니다!

Copy link
Contributor Author

@demian-m00n demian-m00n left a comment

Choose a reason for hiding this comment

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

좋은 피드백 너무나 감사합니다!

@baegyeong baegyeong added the BE label Nov 13, 2024
@demian-m00n demian-m00n requested a review from a team November 14, 2024 01:12
Copy link
Collaborator

@baegyeong baegyeong left a comment

Choose a reason for hiding this comment

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

LGTM 🧔

@demian-m00n demian-m00n merged commit 225309b into dev-be Nov 14, 2024
@swkim12345 swkim12345 deleted the feature/#23 branch December 5, 2024 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE ✨feature 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants