From 7f003690e4a31882fbe322f4413536aad495d879 Mon Sep 17 00:00:00 2001 From: kjyyjk Date: Fri, 16 Aug 2024 22:11:27 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=ED=81=B4=EB=9F=BD=20=EC=A0=95=EB=B3=B4?= =?UTF-8?q?=20=EB=B0=98=ED=99=98=20=EC=8B=9C=20=EC=B2=AB=20=EB=B0=A9?= =?UTF-8?q?=EB=AC=B8=20=EC=97=AC=EB=B6=80=20=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GDG/whatssue/domain/club/controller/ClubController.java | 2 ++ .../GDG/whatssue/domain/member/service/ClubMemberService.java | 1 - .../GDG/whatssue/global/interceptor/ClubCheckInterceptor.java | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/GDG/whatssue/domain/club/controller/ClubController.java b/src/main/java/GDG/whatssue/domain/club/controller/ClubController.java index 3b01b125..64c94139 100644 --- a/src/main/java/GDG/whatssue/domain/club/controller/ClubController.java +++ b/src/main/java/GDG/whatssue/domain/club/controller/ClubController.java @@ -10,6 +10,7 @@ import GDG.whatssue.domain.club.dto.GetClubInfoByPrivateCodeResponse; import GDG.whatssue.global.common.annotation.ClubManager; import GDG.whatssue.global.common.annotation.LoginUser; +import GDG.whatssue.global.common.annotation.SkipFirstVisitCheck; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.Valid; @@ -116,6 +117,7 @@ public ResponseEntity updateClubPrivateStatus( return ResponseEntity.status(HttpStatus.OK).body("OK"); } + @SkipFirstVisitCheck @Operation(summary = "모임 정보 조회") @GetMapping("/{clubId}/info") public ResponseEntity getClubInfo(@PathVariable("clubId") Long clubId) { diff --git a/src/main/java/GDG/whatssue/domain/member/service/ClubMemberService.java b/src/main/java/GDG/whatssue/domain/member/service/ClubMemberService.java index cad69b03..c247cf9c 100644 --- a/src/main/java/GDG/whatssue/domain/member/service/ClubMemberService.java +++ b/src/main/java/GDG/whatssue/domain/member/service/ClubMemberService.java @@ -132,7 +132,6 @@ public String getMemberNameByNamePolicy(Long clubId, ClubMember member){ return member.getUser().getUserName(); else return member.getMemberName(); - } public GetMemberInfoResponse getMemberInfo(Long clubId, Long userId) { diff --git a/src/main/java/GDG/whatssue/global/interceptor/ClubCheckInterceptor.java b/src/main/java/GDG/whatssue/global/interceptor/ClubCheckInterceptor.java index 14dac19c..e2344380 100644 --- a/src/main/java/GDG/whatssue/global/interceptor/ClubCheckInterceptor.java +++ b/src/main/java/GDG/whatssue/global/interceptor/ClubCheckInterceptor.java @@ -67,6 +67,7 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons if (skipFirstVisitCheck == null) { member.validateFirstVisit(); } + //인터셉터 통과 return true; }