Skip to content

Commit

Permalink
chore: 리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
Soundbar91 committed Dec 13, 2024
1 parent 7d1052c commit c5958df
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c5958df

Please sign in to comment.