-
Notifications
You must be signed in to change notification settings - Fork 0
feat: 컨트롤러 분리, 카드상세 확인 코인조회, 충전 추가 #14
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
userCoinLog = new UserCoinLog(objectMapper.readValue(message, UserCoinLogVO.class)); | ||
} catch (JsonProcessingException e) { | ||
throw new RuntimeException(e); | ||
} |
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.
Exception이 나면 kafka에 미처리 상태로 남아서 무한 반복 시도 문제 고려
|
||
private final UserCardService userCardService; | ||
|
||
@GetMapping(value = "/v1/users/cards") |
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.
@GetMapping(value = "/v1/users/{userId}/cards")
userId = 로그인 아이디 아님. 해당 테이블의 시퀀스
userCardService.setCard(authentication.getPrincipal().toString()); | ||
} | ||
|
||
@GetMapping(value = "/v1/users/cards/detail/{targetId}") |
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.
/v1/users/{userId}/target-users -> target의 목록
/v1/users/{userId}/target-users/cards -> target들의 전체 카드 목록
/v1/users/{userId}/target-users/{targetId}/cards
/v1/users/{userId}/target-users/all-cards
/v1/users/{userId}/target-users
/v1/users/{userId}/target-users/{targetId}
/v1/users/{userId}/target-users/{targetId}/cards
/v1/users/{userId}/target-users/{targetId}/cards/{cardId}
/v1/users/{userId}/target-users/target-users-cards
private final KafkaProducer kafkaProducer; | ||
private final ObjectMapper objectMapper; | ||
|
||
@GetMapping(value = "/v1/users/coin") |
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.
/v1/users/{userId}/coins
컨트롤러 분리, 카드상세 확인 코인조회, 충전 추가