From 5a723252989b8f8f46952b3031cb4b54a113a679 Mon Sep 17 00:00:00 2001 From: DongGeon0908 Date: Mon, 26 Aug 2024 21:15:27 +0900 Subject: [PATCH] fix: change search spec --- .../domain/pose/infrastructure/model/PostCountSearchSpec.kt | 4 ++-- .../alignlab/domain/pose/model/request/PoseSearchRequest.kt | 4 ++-- .../hero/alignlab/domain/pose/resource/PoseCountResource.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/com/hero/alignlab/domain/pose/infrastructure/model/PostCountSearchSpec.kt b/src/main/kotlin/com/hero/alignlab/domain/pose/infrastructure/model/PostCountSearchSpec.kt index 63fa445..ec87e85 100644 --- a/src/main/kotlin/com/hero/alignlab/domain/pose/infrastructure/model/PostCountSearchSpec.kt +++ b/src/main/kotlin/com/hero/alignlab/domain/pose/infrastructure/model/PostCountSearchSpec.kt @@ -4,6 +4,6 @@ import java.time.LocalDate data class PostCountSearchSpec( val uid: Long, - val fromDate: LocalDate, - val toDate: LocalDate, + val fromDate: LocalDate?, + val toDate: LocalDate?, ) diff --git a/src/main/kotlin/com/hero/alignlab/domain/pose/model/request/PoseSearchRequest.kt b/src/main/kotlin/com/hero/alignlab/domain/pose/model/request/PoseSearchRequest.kt index 59920fb..91be5eb 100644 --- a/src/main/kotlin/com/hero/alignlab/domain/pose/model/request/PoseSearchRequest.kt +++ b/src/main/kotlin/com/hero/alignlab/domain/pose/model/request/PoseSearchRequest.kt @@ -3,6 +3,6 @@ package com.hero.alignlab.domain.pose.model.request import java.time.LocalDate data class PoseSearchRequest( - val fromDate: LocalDate, - val toDate: LocalDate, + val fromDate: LocalDate?, + val toDate: LocalDate?, ) diff --git a/src/main/kotlin/com/hero/alignlab/domain/pose/resource/PoseCountResource.kt b/src/main/kotlin/com/hero/alignlab/domain/pose/resource/PoseCountResource.kt index 95ae734..35844bf 100644 --- a/src/main/kotlin/com/hero/alignlab/domain/pose/resource/PoseCountResource.kt +++ b/src/main/kotlin/com/hero/alignlab/domain/pose/resource/PoseCountResource.kt @@ -23,7 +23,7 @@ class PoseCountResource( private val poseCountService: PoseCountService, ) { /** - * 정렬 + * 정렬조건 * - date,desc * - date,asc */