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

Feat: 부스 공지 삭제 API #268

Merged
merged 8 commits into from
Oct 10, 2024
Merged

Feat: 부스 공지 삭제 API #268

merged 8 commits into from
Oct 10, 2024

Conversation

gitseoyeon
Copy link
Member

Summary

Key Changes

  • controller 클래스에 공지 삭제 추가
  • service 클래스에 공지 삭제 메소드 추가
  • 공지 삭제시 로그인 유저가 부스 관리자인지 판별하는 메소드를 따로 만들어서 분리

Testing

  • 성공 시
image
  • 관리자가 아닌 사람이 삭제를 할 경우
image

To Reviewers

  • 저번 리팩토링 과정 때 TODO로 주석 처리하신 부분중에 권한 확인 클래스 따로 설정 하신 다고 본 것 같은데 우선 부스 공지 쪽에서도 권한을 확인하는 로직이 중복되어 사용되는 것 같아서 메소드 분리를 해보았습니다. 괜찮으시다면 사용된 로직 부분은 이 메소드를 활용해볼까 하는데 의견 남겨주세요!
  • 그 외 질문이나 의견 있으시면 리뷰 남겨주세요!

@gitseoyeon gitseoyeon added the feature 기능 개발과 관련된 내용입니다. label Oct 9, 2024
@gitseoyeon gitseoyeon requested a review from muncool39 October 9, 2024 13:43
@gitseoyeon gitseoyeon self-assigned this Oct 9, 2024
Copy link
Member

@muncool39 muncool39 left a comment

Choose a reason for hiding this comment

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

확인했습니다! 수고하셨습니다. 👍

사용된 로직 부분은 이 메소드를 활용해볼까 하는데 의견 남겨주세요!

혹시 이 부분은 해당 메서드를 이 BoothNoticeService 외의 다른 서비스들에서도 권한을 확인 하는 메서드로 활용한다는 의미실까요? 제가 작성했던 권한 확인 클래스 분리는 모든 서비스에서 사용되도록 구상한 내용이라 같은 의미인지 궁금해서 질문드려요! 만약 그렇게 된다면 매개변수 부분을 Booth로 변경해 사용하면 좋을 것 같네요 😃

@gitseoyeon
Copy link
Member Author

아 제가 이해했던건 다른 서비스에서도 사용하는 느낌은 아니었고 그냥 클래스에 메소드를 따로 분리만 해두는 느낌으로 말씀드렸던건데 그냥 이 클래스에서 notice 객체를 가지고 확인하는 것도 좋아보이네요!

@gitseoyeon
Copy link
Member Author

private 메소드 위치 수정 했습니다! 의견 감사합니다 😊

Copy link
Member

@muncool39 muncool39 left a comment

Choose a reason for hiding this comment

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

확인했습니다! 수고하셨습니다~
한 가지 의견도 남겼는데 반영되면 바로 머지하면 될 것 같습니다!

@gitseoyeon gitseoyeon merged commit 4626ff4 into dev Oct 10, 2024
2 checks passed
@gitseoyeon gitseoyeon deleted the feat/#267 branch October 10, 2024 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 기능 개발과 관련된 내용입니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 부스 공지 삭제 기능
2 participants