@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...

    接口 GetLeaderboardListResult

    排行榜列表的一页规范化结果。

    记录顺序由榜单 order 决定,并受 rankLimit 展示范围限制。空 entries 是合法页面; 是否继续只能看 hasMore,不能用数组长度或是否有 cursor 单独推断。

    interface GetLeaderboardListResult {
        cursor?: string;
        entries: LeaderboardEntry[];
        hasMore: boolean;
    }
    索引

    属性

    cursor?: string

    下一页不透明分页游标;仅当服务端返回非空 cursor 时存在。应在 hasMore: true 时原样 传给同一 key 和 limit 的下一次 getList(),不要解析或自行递增。

    entries: LeaderboardEntry[]

    当前页排行榜记录,按服务端名次顺序返回。

    每条 LeaderboardEntry 包含 rank、ranked、小程序隔离的 appUserId、排序字段 score、公开展示 extra,以及服务端时间戳 createdAt / updatedAt。extra 不参与 排序,appUserId 不是黑盒用户 ID,也不能用于跨小程序关联用户。

    hasMore: boolean

    服务端对“是否还有下一页”的权威判断。false 表示遍历结束;不要用 entries.length === limit 或 cursor 是否存在替代该字段。