-
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: 상태별 회원 조회 목록 api 구현 #371
Conversation
Job Summary for GradleCheck Style and Test to Develop :: build-test
|
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.
동일 api에서 멤버 역할만 검색 옵션으로 추가하면 될듯 한데 별도 api로 분리하신 이유가 있나요?
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.
확인했습니다
@@ -42,6 +43,16 @@ public ResponseEntity<Page<AdminMemberResponse>> getMembers(MemberQueryOption qu | |||
return ResponseEntity.ok().body(response); | |||
} | |||
|
|||
@Operation(summary = "회원 상태별 목록 조회", description = "정회원, 준회원, 게스트별로 조회합니다.") | |||
@GetMapping("/role") |
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.
기존 메서드가 admin 페이지에서 계속 사용되기는 합니다만,
쿼리 파라미터만 추가하면 영향을 주지 않고 수정이 가능할 것 같습니다.
member.verifyDiscord(DISCORD_USERNAME, NICKNAME); | ||
member.verifyBevy(); | ||
member.advanceToAssociate(); | ||
member.updatePaymentStatus(VERIFIED); |
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.
이 메서드는 곧 사라질 예정이라 test에서 사용하지 않는게 좋을것 같습니다~
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.
updatePayment말씀하시는거죠? 결제 쪽에서 이거 그대로 사용하실거라고 들어서..혹시 모르니까 그냥 이 테스트는 삭제할까요?
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.
네 updatePaymentStatus 말씀드린거 맞아요
재현님께서 작업하신 내용이 이미 dev에 들어가있어서 conflict가 생겼네요
확인부탁드려요
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.
넵 그 재현님 pr다 되고 그거 가져다가 작업하라고 하셔서 기다리고 있던 상태였습니당
아 그 이미 기존에 사용되던거라서 일단 건드리지 않으려고 한건데 밑에 상욱님이 남겨주신거보면 기존 api를 수정하는 방향으로 가져가도 될것같습니다 |
Job Summary for GradleCheck Style and Test to Develop :: build-test
|
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.
확인했습니다!
@@ -35,10 +36,13 @@ public class AdminMemberController { | |||
|
|||
private final AdminMemberService adminMemberService; | |||
|
|||
@Operation(summary = "전체 회원 목록 조회", description = "전체 회원 목록을 조회합니다.") | |||
@Operation(summary = "회원 상태별 목록 조회", description = "정회원, 준회원, 게스트별로 조회합니다.") |
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.
MemberRole도 있고 MemberStatus도 있으므로 아래와 같이 바꾸는 게 좋을 것 같습니다.
pr 제목도 같이 부탁드립니다~
@Operation(summary = "회원 상태별 목록 조회", description = "정회원, 준회원, 게스트별로 조회합니다.") | |
@Operation(summary = "회원 역할별 목록 조회", description = "정회원, 준회원, 게스트별로 조회합니다.") |
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.
앗 알겠습니다~~
member.verifyDiscord(DISCORD_USERNAME, NICKNAME); | ||
member.verifyBevy(); | ||
member.advanceToAssociate(); | ||
member.updatePaymentStatus(VERIFIED); |
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.
네 updatePaymentStatus 말씀드린거 맞아요
재현님께서 작업하신 내용이 이미 dev에 들어가있어서 conflict가 생겼네요
확인부탁드려요
Job Summary for GradleCheck Style and Test to Develop :: build-test
|
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.
lgtm
/** | ||
* deprecated | ||
*/ | ||
public void updatePaymentStatus(RequirementStatus status) { |
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.
이 로직 의미는 뭔가요...?
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.
이거 merge되면서 문제 생겼나봐요..!! 왜 저기에 들어갔는지 모르겠네요 지우겠습니다
Job Summary for GradleCheck Style and Test to Develop :: build-test
|
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.
lgtm
🌱 관련 이슈
📌 작업 내용 및 특이사항
📝 참고사항
📚 기타