Documentation ¶
Index ¶
Constants ¶
View Source
const ( PageNum = 1 PageSize = 20 )
Page PageSize Number of data items per page
Variables ¶
This section is empty.
Functions ¶
func DefaultPageNum ¶
func DefaultPageNum(pageNum interface{}) uint
func DefaultPageSize ¶
func DefaultPageSize(pageSize interface{}) uint
Types ¶
type GormModel ¶
type GormModel struct { ID uint `json:"id" gorm:"primary_key"` CreatedAt int64 `json:"createdAt" sql:"index"` UpdatedAt int64 `json:"updatedAt"` DeletedAt *time.Time `json:"-" sql:"index"` }
GormModel base user
type Project ¶
type Project struct { GormModel Name string `json:"name"` Address string `gorm:"NOT NULL;uniqueIndex:idx_uni;type:varchar(64)" json:"address"` Email string `json:"email"` WhiteList []WhiteList `json:"whiteList"` Condition string `json:"condition" gorm:"type:json"` AirdropContract string `json:"airdropContract"` }
Project .
Click to show internal directories.
Click to hide internal directories.