Documentation ¶
Overview ¶
游标分页组件
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct { CursorValue string // 分页游标原始值 NextTimeAt int64 // 记录分页发生的时间点, 毫秒时间戳 PageSize int // 分页拉取数量 }
游标信息
type PageInfo ¶
type PageInfo struct { Total int64 `json:"total" xml:"total"` // 数据总数 List []map[string]interface{} `json:"list" xml:"list"` // 分页数据 NextPage int `json:"nextPage" xml:"nextPage"` // 是否还有下一页 NextCursor string `json:"nextCursor" xml:"nextCursor"` // 下一页请求游标 }
分页数据结果
type RecordsInfo ¶
type RecordsInfo struct {
Records PageInfo `json:"records" xml:"records"`
}
Click to show internal directories.
Click to hide internal directories.