Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanConvert ¶
CanConvert returns true if FromType can be converted to ToType.
Types ¶
type BigInt ¶
type BigInt struct {
// contains filtered or unexported fields
}
func ParseBigInt ¶
func (*BigInt) MarshalBSON ¶
func (*BigInt) MarshalJSON ¶
func (*BigInt) UnmarshalBSON ¶
func (*BigInt) UnmarshalJSON ¶
type PageAndSort ¶
type PageAndSort struct { PageParam `json:",inline"` // 页码, 从1开始 Sort string `json:"sort"` // 排序字段, 例如: -createdAt, +updatedAt }
func NewPageAndSort ¶
func NewPageAndSort(page, pageSize int64, sort string) *PageAndSort
new page and sort
func PageLimit ¶
func PageLimit(limit int) *PageAndSort
Click to show internal directories.
Click to hide internal directories.