-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat : 생협 운영시간 이름으로 조회하기 추가 #1164
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다.
코멘트 하나만 확인해주세요!
@GetMapping("/type/{coopShopType}") | ||
public ResponseEntity<CoopShopResponse> getCoopShopByType( | ||
@PathVariable CoopShopType coopShopType | ||
) { | ||
CoopShopResponse coopShop = coopShopService.getCoopShopByType(coopShopType); | ||
return ResponseEntity.ok(coopShop); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A
전체 생협매장에서 타입을 기준으로 조회하는 기능으로 보입니다.
새로 api를 추가하는 방식도 좋지만
아래와 같이 기존의 get /coopshop
에서 required = false로 쿼리 스트링을 추가하는 것은 어떻게 생각하시나요?
get /coopshop?coopShopType=CAFTERIA
추가) 그런데 이렇게 하면 response 형식이 달라지긴 하네요 ㅠ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다~
CAMPUS2("2캠퍼스"), | ||
WELFARE_CVS("복지관 편의점"), | ||
CHAMBIT_CVS("참빛관 편의점"), | ||
CVS("복지관 참빛관 편의점"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요건 어쩌다 합쳐진건가요?
🔥 연관 이슈
🚀 작업 내용
/coopshop/type/{coopShopType}
/coopshop/{coopShopId}
)는 학기가 바뀔 때마다 Id를 수정해야 하는 문제가 생겨 추가하였습니다.💬 리뷰 중점사항