Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultLimit = 10
Variables ¶
This section is empty.
Functions ¶
func OffsetLimit ¶
func OffsetLimit(p *proto_paging.Paging) (offset, limit int)
OffsetLimit 获取sql的offset limit
func WithTotal ¶
func WithTotal(p *proto_paging.Paging, total int64) *proto_paging.Paging
WithTotal 填充总数
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.