Documentation ¶
Index ¶
Constants ¶
View Source
const TYPE_ADMIN = 100
View Source
const TYPE_NORMAL = 0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct { gorm.Model Email string `json:"email"` Password string `json:"password"` Token string `json:"token" sql:"-"` Type uint `json:"type"` Profile *Profile `json:"profile"` }
a struct to rep user account
Click to show internal directories.
Click to hide internal directories.