Closed Cathy-CHS closed 11 months ago
@Cathy-CHS 관련된 test code를 작성할 예정이라 이것이 마무리되기 전까지 merge는 보류하겠습니다. 고생하셨어요!
@Cathy-CHS
GET '/transactions'
method to GET '/transactions/:organization_id/:year/:half'
and a test case added.
Please check. Thank you !
현재까지 구현된 pagination과 sorting feature 완료해서 PR 올립니다...!
기본적으로는 routes 폴더 내 transaction.ts에서 주소에 page 값을 받아오면 거래일 기준으로 sort된 거래내역(
sortedTransaction
) 중 받아온 page 값에 해당되는 내역들만 slice(transaction1page
)하는 형식입니다! 화면에서 page 번호들을 쭉 띄우고 클릭하면 이동하는 방식은 프론트와의 연결이 필요할 것 같습니다.