mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-26 12:32:40 +00:00
[F] Fix list
This commit is contained in:
parent
111304481f
commit
d7db45d700
@ -9,7 +9,7 @@ import java.util.*
|
||||
fun Maimai2ServletController.initApis() {
|
||||
// Used because maimai does not actually require paging implementation
|
||||
fun String.unpaged(key: String? = null, fn: PagedHandler) {
|
||||
val k = key ?: (this.replace("get", "").firstCharLower() + "List")
|
||||
val k = key ?: (this.replace("Get", "").firstCharLower() + "List")
|
||||
this {
|
||||
fn(this).let { mapOf("userId" to uid, "nextIndex" to 0, "length" to it.size, k to it) }
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user