-
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
[BE] 6.02 각 주식 정보 가져오기 API 구현 #54 #99
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.
공통 함수로 분리를 하고 작업을 하려고 했으나. . 이 부분이 진명님께서 피드백 주신 중간 계층을 둬서 처리해라 ..~ 이 부분인 것 같은데 아직 공부가 필요한 것 같아 중간에 관두고 service 클래스 안에서만 동작하게 작성했다.
🟢 아하 확인했습니당! 나중에 저희 다같이 공부하고 분리해바요...ㅎㅎ
private async requestApi<T>( | ||
trId: string, | ||
apiURL: string, | ||
params: Record<string, string>, | ||
): Promise<T> { | ||
try { | ||
const accessToken = await this.koreaInvetmentService.getAccessToken(); |
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.
🟢 아니면... 이 메소드를 koreaInvestmentService에 위치시키면 전역에서 쓰도록 할 수 있지 않을까요??
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.
그렇게 하면 여전히 다른 서비스 계층들이 koreaInvestmentService를 참조해야 하지 않나요..?!
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.
수고하셨습니다!
✅ 주요 작업
💭 고민과 해결과정