list

abstract fun list(scope: String, startCursor: String? = null, limit: Int? = null, autoPagination: Boolean = true): Collectable<QGCommandPanelRecord>(source)

按 scope 分页获取指令面板。

当 autoPagination 为 true 时,返回的 Collectable 是基于冷流的分页收集器, 它会在收集过程中自动根据上一次返回列表的尾标持续分页查询直到数据全部获取完毕。 如果你只需要单页的数据,则需要将 autoPagination 设置为 false。

因为它基于冷流,只有当开始收集此流时才会真正产生请求。

Since

5.0

Parameters

scope

生效场景。

startCursor

分页起始游标。默认为 0.

limit

每页请求数量;null 表示使用服务端默认值。

autoPagination

是否自动分页。默认为 true。


按 scope 获取全部指令面板。

返回的 Collectable 是基于冷流的分页收集器,只有当开始收集此流时才会真正产生请求。

Since

5.0

Parameters

scope

生效场景。