Skip to content

Commit

Permalink
refactor: penaltyUserController 파라미터 스웨거 표시 안하도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
huncozyboy committed Oct 26, 2024
1 parent 4c9d5c1 commit 1852675
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static leets.weeth.domain.penalty.presentation.ResponseMessage.PENALTY_USER_FIND_SUCCESS;

import io.swagger.v3.oas.annotations.Parameter;
import leets.weeth.domain.penalty.application.dto.PenaltyDTO;
import leets.weeth.domain.penalty.application.usecase.PenaltyUsecase;
import leets.weeth.global.auth.annotation.CurrentUser;
Expand All @@ -19,7 +20,7 @@ public class penaltyUserController {
private final PenaltyUsecase penaltyUsecase;

@GetMapping
public CommonResponse<PenaltyDTO.Response> findAllPenalties(@CurrentUser Long userId) {
public CommonResponse<PenaltyDTO.Response> findAllPenalties(@Parameter(hidden = true) @CurrentUser Long userId) {
PenaltyDTO.Response penalties = penaltyUsecase.find(userId);
return CommonResponse.createSuccess(PENALTY_USER_FIND_SUCCESS.getMessage(),penalties);
}
Expand Down

0 comments on commit 1852675

Please sign in to comment.