탐색 - 남/여 크리에이터 리스트
- 정렬순서에 숫자도 추가
This commit is contained in:
@@ -181,7 +181,7 @@ class ExplorerQueryRepository(
|
|||||||
fun findCreatorByGender(gender: Int): List<Member> {
|
fun findCreatorByGender(gender: Int): List<Member> {
|
||||||
val today = LocalDate.now()
|
val today = LocalDate.now()
|
||||||
val offset = (today.dayOfMonth - 1) % 26
|
val offset = (today.dayOfMonth - 1) % 26
|
||||||
val characters = ('A'..'Z').map { it.toString() }
|
val characters = ('A'..'Z').map { it.toString() }.plus((0..9).map { it.toString() })
|
||||||
val rotatedChars = characters.drop(offset) + characters.take(offset)
|
val rotatedChars = characters.drop(offset) + characters.take(offset)
|
||||||
|
|
||||||
val caseWhenClauses = rotatedChars.withIndex().joinToString(" ") {
|
val caseWhenClauses = rotatedChars.withIndex().joinToString(" ") {
|
||||||
|
Reference in New Issue
Block a user