From c5958dfc6b6dca4e79e60ee14bdfd8f2825312b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=8B=A0=EA=B4=80=EA=B7=9C?= Date: Fri, 13 Dec 2024 12:22:05 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=A6=AC=EB=B7=B0=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../history/dto/AdminHistoriesCondition.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/in/koreatech/koin/admin/history/dto/AdminHistoriesCondition.java b/src/main/java/in/koreatech/koin/admin/history/dto/AdminHistoriesCondition.java index 2932b1777..aec40405b 100644 --- a/src/main/java/in/koreatech/koin/admin/history/dto/AdminHistoriesCondition.java +++ b/src/main/java/in/koreatech/koin/admin/history/dto/AdminHistoriesCondition.java @@ -1,19 +1,19 @@ package in.koreatech.koin.admin.history.dto; +import com.fasterxml.jackson.databind.annotation.JsonNaming; +import in.koreatech.koin.admin.history.enums.DomainType; +import in.koreatech.koin.admin.history.enums.HttpMethodType; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + import static com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy; import static in.koreatech.koin.global.model.Criteria.*; +import static in.koreatech.koin.global.model.Criteria.Sort.CREATED_AT_ASC; import static in.koreatech.koin.global.model.Criteria.Sort.CREATED_AT_DESC; import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED; import static org.springframework.data.domain.Sort.Direction; -import java.util.Objects; - -import com.fasterxml.jackson.databind.annotation.JsonNaming; - -import in.koreatech.koin.admin.history.enums.DomainType; -import in.koreatech.koin.admin.history.enums.HttpMethodType; -import io.swagger.v3.oas.annotations.media.Schema; - @JsonNaming(value = SnakeCaseStrategy.class) public record AdminHistoriesCondition( @Schema(description = "페이지", example = "1", defaultValue = "1", requiredMode = NOT_REQUIRED) @@ -47,7 +47,7 @@ public record AdminHistoriesCondition( } public Direction getSortDir() { - if (sort == Sort.CREATED_AT_ASC) { + if (sort == CREATED_AT_ASC) { return Direction.ASC; } return Direction.DESC;