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 : host role Host 용 생성, 어노테이션 필드 리팩토링 #256

Merged
merged 2 commits into from
Feb 1, 2023

Conversation

ImNM
Copy link
Member

@ImNM ImNM commented Feb 1, 2023

개요

이전 작업사항

작업사항

  • hostId 로도 찾아올수 있게끔 만들었습니다.
  • 캐시가 되니깐 밑에서 뭐 호스트랑 이벤트 불러와도 디비 안거칩니다!

변경로직

  • 사용 방법이 좀 변했습니다
  • 보니깐 이넘값도 어노테이션으로 넘겨줄수 있더라고요
    그래서 스트링에서 받던걸 이넘으로 넘겼습니다.

HostQualification 이랑 FindHostFrom 입니당

// 이벤트 용
 @HostRolesAllowed(role = MANAGER, findHostFrom = EVENT_ID)
    public EventResponse execute(Long eventId, UpdateEventDetailRequest updateEventDetailRequest) {
// 호스트 용
  @HostRolesAllowed(role = MANAGER, findHostFrom = HOST_ID)
    public HostDetailResponse execute(Long hostId, UpdateHostSlackRequest updateHostSlackRequest)

@ImNM ImNM self-assigned this Feb 1, 2023
@ImNM ImNM added For: API [이슈 대상] 외부 API Type: Refactor [이슈 목적] 프로덕션 코드 리팩토링 labels Feb 1, 2023
@ImNM
Copy link
Member Author

ImNM commented Feb 1, 2023

계층 적용은 아무리 생각해봐도
지금 현구조로 되면 되는것 같더라고요?

그래서 그냥 냅뒀습니다!
한번 씩 생각해봐주세요

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 277 Code Smells

16.2% 16.2% Coverage
0.0% 0.0% Duplication

Copy link
Member

@gengminy gengminy left a comment

Choose a reason for hiding this comment

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

드디어 HOST 에도 적용되는군요 LGTM👍

Copy link
Member

@sanbonai06 sanbonai06 left a comment

Choose a reason for hiding this comment

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

아주 좋네요 멋있습니당 👍

@ImNM ImNM merged commit 4340168 into dev Feb 1, 2023
@ImNM ImNM deleted the refactor/254-host-role-aop branch February 1, 2023 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For: API [이슈 대상] 외부 API Type: Refactor [이슈 목적] 프로덕션 코드 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🔨[refactor] 호스트 검증 aop hostId용 제공
3 participants