-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: pagination for get user-matches
- Loading branch information
1 parent
fb38e43
commit 7d1234a
Showing
8 changed files
with
246 additions
and
63 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
3 changes: 2 additions & 1 deletion
3
server/src/main/kotlin/delta/codecharacter/server/match/MatchRepository.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,13 +1,14 @@ | ||
package delta.codecharacter.server.match | ||
|
||
import delta.codecharacter.server.user.public_user.PublicUserEntity | ||
import org.springframework.data.domain.PageRequest | ||
import org.springframework.data.mongodb.repository.MongoRepository | ||
import org.springframework.stereotype.Repository | ||
import java.util.UUID | ||
|
||
@Repository | ||
interface MatchRepository : MongoRepository<MatchEntity, UUID> { | ||
fun findTop10ByOrderByTotalPointsDesc(): List<MatchEntity> | ||
fun findByPlayer1OrderByCreatedAtDesc(player1: PublicUserEntity): List<MatchEntity> | ||
fun findByPlayer1OrderByCreatedAtDesc(player1: PublicUserEntity, pageRequest: PageRequest): List<MatchEntity> | ||
fun findByIdIn(matchIds: List<UUID>): List<MatchEntity> | ||
} |
Oops, something went wrong.