Skip to content

Commit

Permalink
๐Ÿ› Swagger override ์˜ˆ์™ธ๋ฌธ์ œ ํ•ด๊ฒฐ
Browse files Browse the repository at this point in the history
  • Loading branch information
youngreal committed Nov 1, 2024
1 parent 3fed7ad commit 6a02673
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public void withdraw(
@RequestBody @Valid AppleWithdrawRequest withdrawRequest,
AuthenticationMember authenticationMember
) {
authService.processAppleRevoke(withdrawRequest.refreshToken(), authenticationMember.id());
authService.processAppleRevoke(withdrawRequest.appleRefreshToken(), authenticationMember.id());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public record AppleWithdrawRequest(
@Schema(description = "์• ํ”Œ refreshToken", requiredMode = REQUIRED)
@NotBlank(message = "refreshToken์€ ํ•„์ˆ˜ ์ž…๋‹ˆ๋‹ค.")
@Size(max = 300, message = "refreshToken ํ˜•์‹์ด ์•„๋‹™๋‹ˆ๋‹ค.")
String refreshToken
String appleRefreshToken
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import com.dnd.dndtravel.config.AuthenticationMember;
import com.dnd.dndtravel.map.controller.request.RecordRequest;
import com.dnd.dndtravel.map.controller.request.UpdateRecordRequest;
import com.dnd.dndtravel.map.controller.request.validation.PhotoValidation;
import com.dnd.dndtravel.map.service.dto.response.AttractionRecordResponse;
import com.dnd.dndtravel.map.service.dto.response.AttractionRecordsResponse;
import com.dnd.dndtravel.map.service.dto.response.RegionResponse;
Expand Down Expand Up @@ -64,9 +67,14 @@ RegionResponse map(
})
@AuthenticationCommonResponse
void memo(
@Parameter(hidden = true) AuthenticationMember authenticationMember,
@Parameter(description = "์‚ฌ์ง„", schema = @Schema(type = "array", format = "binary")) List<MultipartFile> photos,
@Parameter(description = "๊ธฐ๋ก ์š”์ฒญ ์ •๋ณด", required = true) RecordRequest recordRequest
@Parameter(hidden = true)
AuthenticationMember authenticationMember,
@Parameter(description = "์‚ฌ์ง„", schema = @Schema(type = "array", format = "binary"))
@PhotoValidation @RequestPart(value = "photos", required = false)
List<MultipartFile> photos,
@Parameter(description = "๊ธฐ๋ก ์š”์ฒญ ์ •๋ณด", required = true)
@RequestPart("recordRequest")
RecordRequest recordRequest
);

@Operation(
Expand All @@ -87,8 +95,10 @@ AttractionRecordsResponse findRecords(
@Parameter(hidden = true)
AuthenticationMember authenticationMember,
@Parameter(description = "๊ฒŒ์‹œ๊ธ€์˜ ID๊ฐ’, 0 ํ˜น์€ ๋ฏธ์ž…๋ ฅ์‹œ ๊ฐ€์žฅ์ตœ์‹  ํŽ˜์ด์ง€ ์กฐํšŒ", example = "์ด์ „์š”์ฒญ์˜ ๋งˆ์ง€๋ง‰ ๊ฒŒ์‹œ๊ธ€ID๊ฐ€ 7์ธ๊ฒฝ์šฐ 7๋กœ ์š”์ฒญ์‹œ ๋‹ค์Œ ํŽ˜์ด์ง€ ๊ฒŒ์‹œ๊ธ€ ์กฐํšŒ")
@RequestParam(defaultValue = "0")
long cursorNo,
@Parameter(description = "ํŽ˜์ด์ง€๋‹น ์กฐํšŒํ•  ๊ฒŒ์‹œ๊ธ€ ๊ฐœ์ˆ˜, ๋ฏธ์ž…๋ ฅ์‹œ 10์œผ๋กœ ์ง€์ •")
@RequestParam(defaultValue = "10")
int displayPerPage
);

Expand All @@ -110,8 +120,10 @@ void updateRecord(
@Parameter(description = "๋ฐฉ๋ฌธ๊ธฐ๋ก id๊ฐ’", required = true)
long recordId,
@Parameter(description = "์ˆ˜์ •์š”์ฒญํ•œ ์‚ฌ์ง„", required = false)
@PhotoValidation @RequestPart(value = "photos", required = false)
List<MultipartFile> photos,
@Parameter(description = "์ˆ˜์ •์š”์ฒญ ๊ฐ’", required = true)
@RequestPart("updateRecordRequest")
UpdateRecordRequest updateRecordRequest
);

Expand Down

0 comments on commit 6a02673

Please sign in to comment.