update tools for urls
This commit is contained in:
parent
9a5585957f
commit
14e0196c11
@ -12,6 +12,12 @@ val Pagination.asUrlQueryParts
|
|||||||
"size" to size.toString()
|
"size" to size.toString()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val Pagination.asUrlQueryArrayParts
|
||||||
|
get() = arrayOf(
|
||||||
|
"page" to page.toString(),
|
||||||
|
"size" to size.toString()
|
||||||
|
)
|
||||||
|
|
||||||
val Map<String, String?>.extractPagination: Pagination
|
val Map<String, String?>.extractPagination: Pagination
|
||||||
get() = SimplePagination(
|
get() = SimplePagination(
|
||||||
get("page") ?.toIntOrNull() ?: 0,
|
get("page") ?.toIntOrNull() ?: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user