-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
final Map<String, Object> errorDetails = new HashMap<>(); | ||
|
||
try { | ||
final String accessToken = jwtUtil.resolveToken(request); |
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.
String authKey = request.getCookie("xSessionIUd");
if (redis.exists(authKey)) {
Auth auth = redis.get(authKey)
redis.setEx(authKey, auth, 30601000)
}
throw Exception("no auth");
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.
공용 Lib
AuthLib.java
-> isSession()
-> getUserInfo()
@Configuration | ||
@EnableWebSecurity | ||
@EnableMethodSecurity(prePostEnabled = true) | ||
public class SecurityConfig { |
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.
@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) { |
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.
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); |
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.
matchingMapper.INSTANCE.matchingVOtoMatching(matchingVO, "000", userid, userid, now, now);
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.
Matching matching = matchingMapper.INSTANCE.matchingVOtoMatching(matchingVO, userVo);
feature: matching 요청 추가
user-servcie / matching-service - feign client 연결