Documentation ¶
Index ¶
- func CulOffset(page, pageSize int32) (offset int32)
- type List
- type Page
- type Response
- type State
- type StrTo
- func (s StrTo) Int() (int, error)
- func (s StrTo) Int32() (int32, error)
- func (s StrTo) Int64() (int64, error)
- func (s StrTo) MustInt() int
- func (s StrTo) MustInt32() int32
- func (s StrTo) MustInt64() int64
- func (s StrTo) MustUInt32() uint32
- func (s StrTo) String() string
- func (s StrTo) UInt32() (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Page ¶
type Page struct { DefaultPageSize int32 MaxPageSize int32 PageKey string // url中page关键字 PageSizeKey string // pagesize关键字 }
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
type State ¶
type State struct { Code int `json:"status_code"` // 状态码,0-成功,其他值-失败 Msg string `json:"status_msg"` // 返回状态描述 Data interface{} `json:"data,omitempty"` // 失败时返回空 }
State 状态码
Click to show internal directories.
Click to hide internal directories.