1 Star 0 Fork 0

符策委 / wallet-grpc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pageable.go 746 Bytes
一键复制 编辑 原始数据 按行查看 历史
ffucewei 提交于 2023-08-10 21:43 . Added: eth;
package base
type Pageable interface {
Jsonable
// The total count of all data in the remote server. Returns 0 if statistics are not available
TotalCount() int
// The count of data in the current page.
CurrentCount() int
// The cursor of the current page.
CurrentCursor() string
// Is there has next page.
HasNextPage() bool
ItemArray() *AnyArray
// You need to implement the following methods If you want a Page type and your item class name is Xxx
// ====== template
// type Xxx struct {
// ......
// }
// type XxxPage struct {
// *internal.SdkPageable[*Xxx]
// }
// func NewXxxPageWithJsonString(str string) (*XxxPage, error) {
// var o XxxPage
// err := base.FromJsonString(str, &o)
// return &o, err
// }
}
Go
1
https://gitee.com/fu-ce-wei/wallet-grpc.git
git@gitee.com:fu-ce-wei/wallet-grpc.git
fu-ce-wei
wallet-grpc
wallet-grpc
3f3ae683dd35

搜索帮助