Discover Packages
github.com/Happy-Why/Wutils
pkg
app
package
Version:
v0.0.0-...-bb5b447
Opens a new window with list of versions in this module.
Published: Jul 26, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func CulOffset(page, pageSize int32 ) (offset int32 )
CulOffset 计算偏移值
type List struct {
List interface{} `json:"list"`
Total int64 `json:"total"`
}
func InitPage(defaultPageSize, maxPageSize int64 , pageKey, pageSizeKey string ) *Page
InitPage 初始化默认页数大小和最大页数限制以及查询的关键字
GetPageSizeAndOffset 从请求中获取偏移值和页尺寸
type State struct {
Code int `json:"status_code"`
Msg string `json:"status_msg"`
Data interface{} `json:"data,omitempty"`
}
State 状态码
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.