-
Notifications
You must be signed in to change notification settings - Fork 112
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 진서현 5주차 3단계 #370
Open
jinseohyun1228
wants to merge
56
commits into
kakao-tech-campus-2nd-step2:jinseohyun1228
Choose a base branch
from
jinseohyun1228:step0
base: jinseohyun1228
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
부산대 BE 진서현 5주차 3단계 #370
jinseohyun1228
wants to merge
56
commits into
kakao-tech-campus-2nd-step2:jinseohyun1228
from
jinseohyun1228:step0
Conversation
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
<구현기능> - KakaoController 1. requestKakaoLoginScreen() : 카카오 로그인 인증 코드를 요청하는 메서드 2. getKakaoCode : 전달받은 코드로 엑세스 토큰요청, 유저정보등록, jwt 발급하는 컨트롤러
<구현사항> 1. KakaoService 서비스 객체 (1) receiveKakaoToken() - 인가코드를 이용한 엑세스 토큰 발급해오기 (2) getKakaoProfile() - 엑세스 토큰을 이용한 유저정보 가져오기 2. UserService 서비스 객체 (1) loginKakaoUser() : 카카오 유저 정보를 받아서 없으면 DB에 저장하고, JWT를 발급
…g 사용 <변경사항> 1. KakaoController & KakaoService : 레코드 변경으로 getter메서드명 변경 2. Application : 레코드 변경으로 자동 빈 주입 방법 사용 3. application.properties : grantType값 4. KakaoProperties: 레코드로 변경, @configuration삭제, @JsonNaming 추가
[변경 사항] 1. KakaoProfile : name, email, password, role 메서드 추가 2. User : KakaoProfile를 받아 생성하는 생성자 추가 3. UserJoinRequest : 필요 없어진 부분 삭제 [변경 후 ] UserJoinRequest와 KakaoProfile간의 관계가 사라지고, KakaoProfile로만 login 과정을 처리할 수 있게 되어서 더 깔끔해짐
[변경 내용] 전 : 카카오서비스의 메시지 보내기 메서드에서 요청 바디를 만들고, Json으로 변환하는 부분까지 담당 --> 후 : 카카오 메시지는 팩토리패턴을 이용해 요청 객체를 전달받기만 함, 구조가 더 단순
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Readme에 기능 문서를 두엇다. 그런데, 부족한 부분이 있어서 기능추가가 필요할 것 같다..!
API 문서
http://localhost:8080/spring-gift
로시작합니다.유저 관련 API
Body: UserJoinRequest
Body: UserLoginRequest
카카오 로그인 API
/kakao/login/callback
)로 전달됩니다.Body: "successfully LoggedIn"
제품 등록,수정,삭제 API
Body: ProductAllRequest
Body: "Product added successfully"
Body: ProductRequest
Body: "Product updated successfully"
Path Variable: id (Long)
Body: "Product deleted successfully"
제품,옵션 조회 API
Body: Page of ProductResponce
Body: ProductResponce
Body: ProductAllResponse
카테고리 관련 API
Body: CategoryRequest
Body: "Category created successfully"
Body: CategoryRequest
Body: "Category updated successfully"
Path Variable: id (Long)
Body: "Category deleted successfully"
옵션 관련 API
Body: List of OptionResponse
Body: OptionRequest
Body: "Option added successfully"
Body: OptionRequest
Body: "Option updated successfully"
Body: "Option deleted successfully"
Body: OptionChangeQuantityRequest
Body: "Option Quantity changed successfully"
위시리스트 관련 API
Body: "successfully deleted the item to your wishlist"
Body: Page of WishProductResponse
Body: "successfully added the item to your wishlist"
주문 관련 API
Body: OrderRequest
Body: OrderResponce
페이지 관련 API