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;