-
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.
- Loading branch information
Showing
7 changed files
with
55 additions
and
22 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
3 changes: 0 additions & 3 deletions
3
...n/src/main/kotlin/com/th/plu/domain/domain/answer/dto/EveryAnswerRetrievePageResponses.kt
This file was deleted.
Oops, something went wrong.
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
3 changes: 3 additions & 0 deletions
3
...omain/src/main/kotlin/com/th/plu/domain/domain/answer/dto/EveryAnswerRetrieveResponses.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,3 @@ | ||
package com.th.plu.domain.domain.answer.dto | ||
|
||
data class EveryAnswerRetrieveResponses(val answerInfos: List<EveryAnswerRetrieveResponse>) |
8 changes: 5 additions & 3 deletions
8
...main/src/main/kotlin/com/th/plu/domain/domain/answer/repository/AnswerRepositoryCustom.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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package com.th.plu.domain.domain.answer.repository | ||
|
||
import com.th.plu.domain.domain.answer.Answer | ||
import com.th.plu.domain.domain.answer.dto.EveryAnswerRetrievePageResponse | ||
import com.th.plu.domain.domain.answer.dto.EveryAnswerRetrieveResponse | ||
|
||
interface AnswerRepositoryCustom { | ||
fun findAnswerById(id: Long): Answer? | ||
|
||
fun findEveryAnswersWithCursorAndPageSize(questionId: Long, lastAnswerId: Long, pageSize: Long): List<EveryAnswerRetrievePageResponse> | ||
fun findEveryAnswersWithCursorAndPageSize(questionId: Long, lastAnswerId: Long, pageSize: Long): List<EveryAnswerRetrieveResponse> | ||
|
||
fun findPublicAnswerCountByQuestionId(questionId: Long): Long | ||
fun findPublicAnswersCountByQuestionId(questionId: Long): Long | ||
|
||
fun findPublicAnswersLikeTopN(questionId: Long, getCount: Long): List<EveryAnswerRetrieveResponse> | ||
} |
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