diff --git a/src/main/java/com/softeer/backend/bo_domain/admin/controller/AdminLoginController.java b/src/main/java/com/softeer/backend/bo_domain/admin/controller/AdminLoginController.java index 6ac11892..55827d18 100644 --- a/src/main/java/com/softeer/backend/bo_domain/admin/controller/AdminLoginController.java +++ b/src/main/java/com/softeer/backend/bo_domain/admin/controller/AdminLoginController.java @@ -6,6 +6,7 @@ import com.softeer.backend.global.annotation.AuthInfo; import com.softeer.backend.global.common.dto.JwtTokenResponseDto; import com.softeer.backend.global.common.response.ResponseDto; +import io.swagger.v3.oas.annotations.Parameter; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; @@ -28,7 +29,7 @@ ResponseDto handleLogin(@Valid @RequestBody AdminLoginReque } @PostMapping("/logout") - ResponseDto handleLogout(@AuthInfo Integer adminId) { + ResponseDto handleLogout(@Parameter(hidden = true) @AuthInfo Integer adminId) { adminLoginService.handleLogout(adminId); return ResponseDto.onSuccess(); diff --git a/src/main/java/com/softeer/backend/fo_domain/comment/controller/CommentController.java b/src/main/java/com/softeer/backend/fo_domain/comment/controller/CommentController.java index 3342444f..9939862c 100644 --- a/src/main/java/com/softeer/backend/fo_domain/comment/controller/CommentController.java +++ b/src/main/java/com/softeer/backend/fo_domain/comment/controller/CommentController.java @@ -6,6 +6,7 @@ import com.softeer.backend.global.annotation.AuthInfo; import com.softeer.backend.global.common.code.status.ErrorStatus; import com.softeer.backend.global.common.response.ResponseDto; +import io.swagger.v3.oas.annotations.Parameter; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.validation.BindingResult; @@ -20,7 +21,7 @@ public class CommentController { @GetMapping("/comment") ResponseDto getComment(@RequestParam(name = "cursor", required = false) Integer cursor, - @AuthInfo Integer userId) { + @Parameter(hidden = true) @AuthInfo Integer userId) { if (cursor == null) { cursor = Integer.MAX_VALUE; } @@ -35,7 +36,7 @@ ResponseDto getComment(@RequestParam(name = "cursor", requi @PostMapping("/comment") ResponseDto saveComment(@RequestParam(name = "commentType") Integer commentType, - @AuthInfo Integer userId) { + @Parameter(hidden = true) @AuthInfo Integer userId) { if(commentType == null || commentType<1 || commentType > 5){ diff --git a/src/main/java/com/softeer/backend/fo_domain/draw/controller/DrawController.java b/src/main/java/com/softeer/backend/fo_domain/draw/controller/DrawController.java index 4802d271..33c3dc33 100644 --- a/src/main/java/com/softeer/backend/fo_domain/draw/controller/DrawController.java +++ b/src/main/java/com/softeer/backend/fo_domain/draw/controller/DrawController.java @@ -5,6 +5,7 @@ import com.softeer.backend.fo_domain.draw.service.DrawService; import com.softeer.backend.global.annotation.AuthInfo; import com.softeer.backend.global.common.response.ResponseDto; +import io.swagger.v3.oas.annotations.Parameter; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; @@ -16,12 +17,12 @@ public class DrawController { private final DrawService drawService; @GetMapping("/event/draw") - public ResponseDto getDrawMainPageInfo(@AuthInfo Integer userId) { + public ResponseDto getDrawMainPageInfo(@Parameter(hidden = true) @AuthInfo Integer userId) { return drawService.getDrawMainPageInfo(userId); } @PostMapping("/event/draw") - public ResponseDto participateDrawEvent(@AuthInfo Integer userId) { + public ResponseDto participateDrawEvent(@Parameter(hidden = true) @AuthInfo Integer userId) { return drawService.participateDrawEvent(userId); } } diff --git a/src/main/java/com/softeer/backend/fo_domain/share/controller/ShareController.java b/src/main/java/com/softeer/backend/fo_domain/share/controller/ShareController.java index b3e5f63e..c2fc474a 100644 --- a/src/main/java/com/softeer/backend/fo_domain/share/controller/ShareController.java +++ b/src/main/java/com/softeer/backend/fo_domain/share/controller/ShareController.java @@ -4,6 +4,7 @@ import com.softeer.backend.fo_domain.share.service.ShareUrlInfoService; import com.softeer.backend.global.annotation.AuthInfo; import com.softeer.backend.global.common.response.ResponseDto; +import io.swagger.v3.oas.annotations.Parameter; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @@ -14,7 +15,7 @@ public class ShareController { private final ShareUrlInfoService shareUrlInfoService; @GetMapping("/share-shorten-url") - public ResponseDto getShortenShareUrl(@AuthInfo Integer userId) { + public ResponseDto getShortenShareUrl(@Parameter(hidden = true) @AuthInfo Integer userId) { return shareUrlInfoService.getShortenShareUrl(userId); } }