Documentation
¶
Index ¶
Constants ¶
View Source
const ( IsAdmin int8 = 0 // 普通用户 Disabled int8 = 0 // 禁用 Failure int8 = 0 // 失败 Enabled int8 = 1 // 启用 Running int8 = 1 // 运行中 Finish int8 = 2 // 完成 Cancel int8 = 3 // 取消 )
View Source
const ( Page = 1 // 当前页数 PageSize = 10 // 每页多少条数据 MaxPageSize = 1000 // 每次最多取多少条 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseModel ¶
type BaseModel struct { Page int64 `json:"page" gorm:"-"` PageSize int64 `json:"pageSize" gorm:"-"` }
func (*BaseModel) PageLimitOffset ¶
func (*BaseModel) ParsePageAndPageSize ¶
Click to show internal directories.
Click to hide internal directories.