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 Contract ¶
type Contract struct { GormModel UserID uint `gorm:"NOT NULL" json:"userID"` ProxyAddress string `gorm:"NOT NULL;uniqueIndex:idx_uni;type:varchar(64)" json:"proxyAddress"` ProxyOwner string `gorm:"NOT NULL" json:"proxyOwner"` Name string `json:"name"` Network uint `gorm:"NOT NULL;uniqueIndex:idx_uni;type:varchar(64)" json:"network"` // chain id LastUpdate uint64 `json:"lastUpdate"` Email string `json:"email"` ContractHistoryArr []ContractHistory `json:"contractHistoryArr,omitempty"` }
Contract .
type ContractHistory ¶
Click to show internal directories.
Click to hide internal directories.