Skip to content

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

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

okluckyok
Copy link
Collaborator

컨트롤러 분리, 카드상세 확인 코인조회, 충전 추가

@okluckyok okluckyok self-assigned this Nov 20, 2024
userCoinLog = new UserCoinLog(objectMapper.readValue(message, UserCoinLogVO.class));
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
Copy link
Collaborator

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")
Copy link
Collaborator

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}")
Copy link
Collaborator

@f-lab-nolan f-lab-nolan Nov 20, 2024

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")
Copy link
Collaborator

Choose a reason for hiding this comment

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

/v1/users/{userId}/coins

@okluckyok okluckyok merged commit c006941 into main Dec 9, 2024
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