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

refactor : query key 수정 #877

Merged

Conversation

pipisebastian
Copy link
Member

연관 이슈

작업 요약

�Library Manage Api 쿼리키 포멧 통일

작업 상세 설명

  • borrowInfoList, overdueInfoList의 경우 같은 api 주소지만, request랑 response가 다른부분이 많아서 별도의 key로 만들어 줬습니다!

리뷰 요구사항

3분

@pipisebastian pipisebastian added the Refactor 리팩토링 label Jan 18, 2024
@pipisebastian pipisebastian self-assigned this Jan 18, 2024
book: () => [...libraryManageKeys.base, 'books'] as const,
borrowInfo: () => [...libraryManageKeys.base, 'borrow-infos'] as const,
bookManageList: (params: BookListSearch) => [...libraryManageKeys.book(), params] as const,
bookDetail: (params: number) => [...libraryManageKeys.book(), params] 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.

params 대신 bookId가 좋아보입니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

반영했습니다!

borrowLogList: (param: BorrowLogListSearch) => ['libraryManage', 'borrowLogList', param] as const,
base: ['manage'] as const,
book: () => [...libraryManageKeys.base, 'books'] as const,
borrowInfo: () => [...libraryManageKeys.base, 'borrow-infos'] as const,
Copy link
Contributor

Choose a reason for hiding this comment

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

아마 카멜케이스로 하기로 했던 것 같습니다!

borrow-infos -> borrowInfos

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

@publdaze publdaze left a comment

Choose a reason for hiding this comment

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

굿!

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.

👍

@pipisebastian pipisebastian merged commit 54dce76 into develop Jan 18, 2024
1 check passed
@pipisebastian pipisebastian deleted the feature/libraryApi_쿼리키_포맷_통일_#866 branch January 18, 2024 12:20
@pipisebastian pipisebastian restored the feature/libraryApi_쿼리키_포맷_통일_#866 branch February 16, 2024 10:40
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