-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix the getUser phonenumber through Feign rquest
- Loading branch information
Showing
12 changed files
with
86 additions
and
45 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/bit/lotte/flower/user/social/service/GetUserInfoByOauthId.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.bit.lotte.flower.user.social.service; | ||
|
||
import com.bit.lotte.flower.user.common.valueobject.AuthId; | ||
import com.bit.lotte.flower.user.social.dto.response.UserDataDto; | ||
import com.bit.lotte.flower.user.social.entity.SocialUser; | ||
import com.bit.lotte.flower.user.social.mapper.SocialUserMapper; | ||
import com.bit.lotte.flower.user.social.repository.FindSocialUserByIdService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.beans.factory.annotation.Qualifier; | ||
import org.springframework.context.annotation.Primary; | ||
import org.springframework.stereotype.Service; | ||
|
||
@RequiredArgsConstructor | ||
@Service("GetUserInfoByOauthId") | ||
public class GetUserInfoByOauthId implements GetUserInfoService<AuthId> { | ||
|
||
private final FindSocialUserByIdService findUserByIdService; | ||
|
||
@Override | ||
public UserDataDto getUserdata(AuthId id) { | ||
SocialUser socialUser = findUserByIdService.findUserByOauthIdElseThrowAnError(id.getValue()); | ||
return SocialUserMapper.socialUserToUserMyPageDataResponse(socialUser); | ||
} | ||
} | ||
|
4 changes: 2 additions & 2 deletions
4
src/main/java/com/bit/lotte/flower/user/social/service/GetUserInfoService.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package com.bit.lotte.flower.user.social.service; | ||
|
||
import com.bit.lotte.flower.user.common.valueobject.UserId; | ||
import com.bit.lotte.flower.user.common.valueobject.BaseId; | ||
import com.bit.lotte.flower.user.social.dto.response.UserDataDto; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public interface GetUserInfoService<ID extends UserId> { | ||
public interface GetUserInfoService<ID extends BaseId> { | ||
UserDataDto getUserdata(ID id); | ||
} |
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
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