Skip to content

Commit 0cf481a

Browse files
committed
refactor: MeetingAdminController 파라미터 스웨거 표시 안하도록 설정
1 parent 8c83096 commit 0cf481a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/leets/weeth/domain/schedule/presentation/MeetingAdminController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package leets.weeth.domain.schedule.presentation;
22

3+
import io.swagger.v3.oas.annotations.Parameter;
34
import jakarta.validation.Valid;
45
import leets.weeth.domain.schedule.application.dto.MeetingDTO;
56
import leets.weeth.domain.schedule.application.usecase.MeetingUseCase;
@@ -26,7 +27,7 @@ public class MeetingAdminController {
2627
private final MeetingUseCase meetingUseCase;
2728

2829
@PostMapping
29-
public CommonResponse<Void> save(@RequestBody @Valid Save dto, @CurrentUser Long userId) {
30+
public CommonResponse<Void> save(@RequestBody @Valid Save dto, @Parameter(hidden = true) @CurrentUser Long userId) {
3031
meetingUseCase.save(dto, userId);
3132
return CommonResponse.createSuccess(MEETING_SAVE_SUCCESS.getMessage());
3233
}
@@ -43,7 +44,7 @@ public CommonResponse<List<MeetingDTO.ResponseAll>> findAll() {
4344
}
4445

4546
@PatchMapping("/{meetingId}")
46-
public CommonResponse<Void> update(@RequestBody @Valid Update dto, @CurrentUser Long userId, @PathVariable Long meetingId) {
47+
public CommonResponse<Void> update(@RequestBody @Valid Update dto, @Parameter(hidden = true) @CurrentUser Long userId, @PathVariable Long meetingId) {
4748
meetingUseCase.update(dto, userId, meetingId);
4849
return CommonResponse.createSuccess(MEETING_UPDATE_SUCCESS.getMessage());
4950
}

0 commit comments

Comments
 (0)