Skip to content

Commit

Permalink
Merge pull request #259 from Onion-City/feat/scheduleApi
Browse files Browse the repository at this point in the history
클럽 정보 반환 시 첫 방문 여부 제외
  • Loading branch information
kjyyjk authored Aug 16, 2024
2 parents 865fe32 + 7f00369 commit 1e72d98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons
if (skipFirstVisitCheck == null) {
member.validateFirstVisit();
}

//인터셉터 통과
return true;
}
Expand Down

0 comments on commit 1e72d98

Please sign in to comment.