Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public ApiResponse<FriendshipResDTO.FriendshipSettingsDTO> getFriendshipSettings
@Override
public ApiResponse<FriendshipResDTO.SearchByInviteCodeDTO> searchByInviteCode(
@AuthenticationPrincipal JwtPrincipal jwtPrincipal,
@RequestParam @NotBlank(message = "초대 코드는 필수입니다.") String inviteCode
@RequestParam String inviteCode
) {
Long memberId = jwtPrincipal.memberId();
return ApiResponse.success(friendshipQueryService.searchByInviteCode(memberId, inviteCode));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;

import org.springdoc.core.annotations.ParameterObject;
import org.springframework.data.domain.Sort;
import org.springframework.web.bind.annotation.*;
Expand Down Expand Up @@ -132,6 +134,6 @@ ApiResponse<FriendshipResDTO.SearchByInviteCodeDTO> searchByInviteCode(
@Parameter(hidden = true) JwtPrincipal jwtPrincipal,

@Parameter(description = "검색할 초대 코드", required = true)
@RequestParam String inviteCode
@RequestParam @NotBlank(message = "초대 코드는 필수입니다.") String inviteCode
);
}