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

Feature/library api 쿼리키 포맷 통일 #866 #870

Merged

Conversation

pipisebastian
Copy link
Member

연관 이슈

작업 요약

  • 쿼리키 포맷 수정
  • PageAndSize 타입을 원래는 하드코딩으로 page,size 각각 적어줬는데 extend로 가져옴
  • useGetBookBorrowsQuery -> useGetBorrowedBookListQuery로 네이밍 변경

리뷰 요구사항

  • 3분. 잘 돌아가는거 확인했습니다!

page?: number;
size?: number;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

이거 사용하려고 앞부분으로 위치바꿨습니다!

Copy link
Contributor

Choose a reason for hiding this comment

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

굿굿

useCancleReturnBookMutation,
useCancleBorrowBookMutation,
useCancelReturnBookMutation,
useCancelBorrowBookMutation,
Copy link
Member Author

Choose a reason for hiding this comment

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

함수 네이밍 변경한거랑, cancle로 오타났었어서.. 수정했습니다!

Copy link
Collaborator

@jasper200207 jasper200207 left a comment

Choose a reason for hiding this comment

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

👍

borrowedBookList: ['library', 'borrowedBookList'] as const,
base: ['books'],
bookList: (params: BookListSearch) => [...libraryKeys.base, params] as const,
borrowedBookList: () => [...libraryKeys.base, 'bookBorrows'] as const,
Copy link
Collaborator

Choose a reason for hiding this comment

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

page&size 빠진거 같습니다

Copy link
Member Author

Choose a reason for hiding this comment

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

수정했습니당!

borrowedBookList: ['library', 'borrowedBookList'] as const,
base: ['books'],
bookList: (params: BookListSearch) => [...libraryKeys.base, params] as const,
borrowedBookList: () => [...libraryKeys.base, 'bookBorrows'] as const,
Copy link
Contributor

@publdaze publdaze Jan 16, 2024

Choose a reason for hiding this comment

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

파라미터 안 넘겨주는 경우는 함수형으로 안하고 바로 배열로 해도 될 것 같아요!

에러 이슈 확인했습니다!

@pipisebastian pipisebastian merged commit 51767c6 into develop Jan 16, 2024
1 check passed
@pipisebastian pipisebastian deleted the feature/libraryApi_쿼리키_포맷_통일_#866 branch January 16, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor 리팩토링
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

libraryApi 쿼리키 포맷 통일
3 participants