Skip to content

feature: matching 요청 추가 #19

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

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

okluckyok
Copy link
Collaborator

feature: matching 요청 추가
user-servcie / matching-service - feign client 연결

@okluckyok okluckyok self-assigned this Jan 29, 2025
@okluckyok okluckyok requested a review from f-lab-nolan January 29, 2025 13:04
final Map<String, Object> errorDetails = new HashMap<>();

try {
final String accessToken = jwtUtil.resolveToken(request);
Copy link
Collaborator

Choose a reason for hiding this comment

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

String authKey = request.getCookie("xSessionIUd");
if (redis.exists(authKey)) {
Auth auth = redis.get(authKey)
redis.setEx(authKey, auth, 30601000)
}
throw Exception("no auth");

Copy link
Collaborator

Choose a reason for hiding this comment

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

공용 Lib
AuthLib.java
-> isSession()
-> getUserInfo()

@Configuration
@EnableWebSecurity
@EnableMethodSecurity(prePostEnabled = true)
public class SecurityConfig {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@configuration
@EnableWebSecurity
public class SecurityConfig extends NaverAuthSDK {
}

@@ -57,6 +59,11 @@ public void setCard(final String userId) {
userPreferenceList2 = userPreferenceList2.subList(0, Math.min(3,userPreferenceList2.size()));

List<UserPreferenceCountVO2> recommendUser = userPreferenceRepositoryCustom.findRecommendUser(userId, Stream.concat(userPreferenceList1.stream(), userPreferenceList2.stream()).toList());
if (recommendUser.size() == 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

recommendUser.isEmpty() or recommendUser.empty()

System.out.println("zzz");
userServiceClient.saveCoin(userid, authentication, new UserCoinDTO(String.valueOf(userid), -10000L));

Matching matching = matchingMapper.INSTANCE.matchingVOtoMatching(matchingVO);
Copy link
Collaborator

Choose a reason for hiding this comment

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

matchingMapper.INSTANCE.matchingVOtoMatching(matchingVO, "000", userid, userid, now, now);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Matching matching = matchingMapper.INSTANCE.matchingVOtoMatching(matchingVO, userVo);

@okluckyok okluckyok merged commit d9c2e77 into main Feb 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants