Skip to content

Commit

Permalink
refactor: NoticeAdminController 파라미터 스웨거 표시 안하도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
huncozyboy committed Oct 26, 2024
1 parent 7820c3e commit 8c83096
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public CommonResponse<String> save(@RequestPart @Valid NoticeDTO.Save dto,
public CommonResponse<String> update(@PathVariable Long noticeId,
@RequestPart @Valid NoticeDTO.Update dto,
@RequestPart(value = "files", required = false) List<MultipartFile> files,
@CurrentUser Long userId) throws UserNotMatchException {
@Parameter(hidden = true) @CurrentUser Long userId) throws UserNotMatchException {
noticeUsecase.update(noticeId, dto, files, userId);
return CommonResponse.createSuccess(NOTICE_UPDATED_SUCCESS.getMessage());
}

@DeleteMapping("/{noticeId}")
public CommonResponse<String> delete(@PathVariable Long noticeId, @CurrentUser Long userId) throws UserNotMatchException {
public CommonResponse<String> delete(@PathVariable Long noticeId, @Parameter(hidden = true) @CurrentUser Long userId) throws UserNotMatchException {
noticeUsecase.delete(noticeId, userId);
return CommonResponse.createSuccess(NOTICE_DELETED_SUCCESS.getMessage());
}
Expand Down

0 comments on commit 8c83096

Please sign in to comment.