Skip to content

Commit

Permalink
refactor: add default value at get history API
Browse files Browse the repository at this point in the history
  • Loading branch information
baebae02 committed Nov 9, 2023
1 parent 5faf8bc commit cb5ba49
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;

import java.time.LocalDate;
import lombok.RequiredArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
Expand All @@ -27,7 +26,7 @@ public class HistoryController {
@GetMapping
public ApiResponseDto<HistoryListResponseDto> getHistoryList(
@Parameter(hidden = true) @AuthenticationPrincipal User user,
@RequestParam(value = "type") String type,
@RequestParam(value = "type", defaultValue = "PERSONAL") String type,
@RequestParam(value = "page", defaultValue = "0") int page,
@RequestParam(value = "size", defaultValue = "10") int size) {
return ApiResponseDto.success(SuccessStatus.GET_HISTORY_LIST_SUCCESS,
Expand Down

0 comments on commit cb5ba49

Please sign in to comment.