Skip to content
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

Pet 100 feat : Todo 달성률 조회 API #59

Merged
merged 3 commits into from
Sep 16, 2023
Merged

Pet 100 feat : Todo 달성률 조회 API #59

merged 3 commits into from
Sep 16, 2023

Conversation

isprogrammingfun
Copy link
Member

작업사항

  • 홈 화면에서 사용될 Todo 달성률 조회 API
  • API 테스트 코드 작성, 문서 작성

변경로직

  • 내용을 적어주세요.

참고자료

  • 내용을 적어주세요.

@isprogrammingfun isprogrammingfun added ✨ Feature 새로운 기능 ✅ Test 테스트 labels Sep 15, 2023

public Register findRecentRegisterByUserId(Long userId) {
return registerRepository.findTopByUserIdOrderByCreatedAtDesc(userId)
.orElseThrow(() -> new RegisterNotFoundException(Error.REGISTER_NOT_FOUND));
Copy link
Member

Choose a reason for hiding this comment

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

이거 (() -> new NotRegisterUserException(Error.NOT_REGISTER_USER)) 로 통일할 수 있을것같은데 어떻게 생각해?

private final CategoryQueryService categoryQueryService;

public TodoProgressResponse getTodoProgress(Long todoTeamId) {
if(todoTeamId == null) {
Copy link
Member

Choose a reason for hiding this comment

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

이렇게 null값을 받는것보다는 가입된 패밀리 id랑 이름만 반환하는 api 제공해주고
그 다음에 사용자가 선택하면 null값이 안들어올것같은데 어떻게 생각해?

@isprogrammingfun isprogrammingfun merged commit e906643 into main Sep 16, 2023
@isprogrammingfun isprogrammingfun deleted the PET-100 branch September 16, 2023 01:25
@isprogrammingfun isprogrammingfun changed the title Pet 100 Todo 달성률 조회 API Pet 100 feat : Todo 달성률 조회 API Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 새로운 기능 ✅ Test 테스트
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants