-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 장바구니 조회 및 목록 서비스 (server/src/cartItems/application/cartItem-list.service.ts)를 업데이트했습니다. - 사용자 인증을 위해 JWT 토큰 검증 로직(src/users/jwt/jwt.provider.ts)을 추가했습니다. - 서비스 함수 시그니처를 getCartItems(userId: number, selectedId: number[])에서 getCartItems(accessToken: any, selectedId: number[])으로 변경했습니다. - 테스트 코드 (server/src/cartItems/application/cartItem-list.service.test.ts)를 업데이트하여 변경된 서비스 로직을 검증합니다. - 모의 JWT 토큰을 테스트 케이스에 추가했습니다. - 장바구니 조회 컨트롤러 (server/src/cartItems/web/cartItem-list.controller.ts)를 업데이트했습니다. - 요청 헤더에서 JWT 토큰을 추출하여 서비스 함수에 전달합니다.
- Loading branch information
Showing
4 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
16 changes: 11 additions & 5 deletions
16
server/src/cartItems/application/cartItem-list.service.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters