-
Notifications
You must be signed in to change notification settings - Fork 1
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
[#37] 사용자 온/오프라인 상태 설정 #38
Conversation
|
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.
고생 많으셨습니다!
온오프라인 상태 설정하는 부분에선 딱히 피드백드릴 내용이 없네요 바로 머지하도록 하겠습니다 ~
.requestMatchers(new MvcRequestMatcher.Builder(introspector).pattern(HttpMethod.GET, "/rank/**")).permitAll() | ||
.requestMatchers(new MvcRequestMatcher.Builder(introspector).pattern(HttpMethod.GET, "/diaries/**")).permitAll() | ||
.requestMatchers(new AntPathRequestMatcher("/login")).permitAll() | ||
.requestMatchers(new AntPathRequestMatcher("/members", "POST")).permitAll() |
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.
메서드 타입같은거 문자열로 다루게 되면 실수 할 여지가 생겨서 원래처럼 enum 값을 받을 수 있게 메서드를 하나 제공하는건 어떨까요 ?
Double longitude = Optional.ofNullable(request.getParameter("longitude")) | ||
.map(Double::parseDouble).orElse(null); | ||
memberService.setOnline(memberId, latitude, longitude); | ||
response.setStatus(200); |
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.
200도 HttpStatus 사용하면 좋을 것 같아요 ~
memberService.setOnline()
,memberService.setoffline()
추가online:member
, value=�멤버아이디
가 저장됨.member:pos
, value=멤버아이디
가 redis geo operation으로 저장됨그 외 변경점
feed저장 -> graphicContent에 feed_id 설정해서 저장
이렇게 하면 되는데feed저장 -> graphicContent에 feed_id를 null로 설정하고 저장 -> graphicContent의 feed_id를 업데이트
이런식으로 동작함. 그래서 notnull constraints때문에 에러.