-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 최근 리뷰 조회 서비스 작성 * fix: 최근 업데이트된 음식점 조회를 이번주 업데이트된 음식점 조회로 변경 * feat: 이번주 업데이트된 음식점 조회 API 작성 * chore: apply ktlint * chore: createdDate -> createdAt
- Loading branch information
1 parent
ecc16de
commit fd6c9f4
Showing
10 changed files
with
248 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
.../kotlin/com/celuveat/restaurant/application/port/in/ReadWeeklyUpdateRestaurantsUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.celuveat.restaurant.application.port.`in` | ||
|
||
import com.celuveat.common.application.port.`in`.result.SliceResult | ||
import com.celuveat.restaurant.application.port.`in`.query.ReadWeeklyUpdateRestaurantsQuery | ||
import com.celuveat.restaurant.application.port.`in`.result.RestaurantPreviewResult | ||
|
||
/** | ||
* 최근 업데이트된 맛집 | ||
*/ | ||
interface ReadWeeklyUpdateRestaurantsUseCase { | ||
fun readWeeklyUpdateRestaurants(query: ReadWeeklyUpdateRestaurantsQuery): SliceResult<RestaurantPreviewResult> | ||
} |
12 changes: 12 additions & 0 deletions
12
...lin/com/celuveat/restaurant/application/port/in/query/ReadWeeklyUpdateRestaurantsQuery.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.celuveat.restaurant.application.port.`in`.query | ||
|
||
import java.time.LocalDate | ||
|
||
private const val DEFAULT_LATEST_UPDATED_RESTAURANTS_SIZE = 10 | ||
|
||
data class ReadWeeklyUpdateRestaurantsQuery( | ||
val memberId: Long?, | ||
val page: Int = 0, | ||
val size: Int = DEFAULT_LATEST_UPDATED_RESTAURANTS_SIZE, | ||
val baseDate: LocalDate = LocalDate.now(), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters