Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct { PageInformation *PageInformation `json:"page_information,omitempty"` Entities interface{} `json:"entities,omitempty"` }
Page page model
type PageForm ¶
type PageForm struct { Page int `json:"page,omitempty" form:"page" query:"page"` Size int `json:"size,omitempty" form:"size" query:"size"` Query string `json:"query,omitempty" form:"query" query:"query"` Sort string `json:"sort,omitempty" form:"sort" query:"sort"` Reverse bool `json:"reverse,omitempty" form:"reverse" query:"reverse"` OrderBy string `json:"-" form:"-"` }
PageForm page form
type PageInformation ¶
type PageInformation struct { Page int `json:"page,omitempty"` Size int `json:"size,omitempty"` Count int64 `json:"count,omitempty"` LastPage int `json:"last_page,omitempty"` }
PageInformation page information
type TokenClaims ¶
type TokenClaims struct { jwt.RegisteredClaims Role string `json:"role"` }
token claims
type User ¶
type User struct { Pubkey string `json:"pubkey" gorm:"primaryKey;type:varchar(64)"` CreatedAt Timestamp `json:"created_at" gorm:"type:integer"` UpdatedAt Timestamp `json:"updated_at" gorm:"type:integer"` DeletedAt Timestamp `json:"deleted_at" gorm:"type:integer"` Name string `json:"name"` LightningURL string `json:"lightning_url"` }
Click to show internal directories.
Click to hide internal directories.