Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
type RegisterRequest ¶
type User ¶
type User struct { gorm.Model Email string `gorm:"index:email,unique;not null" json:"email"` FirstName string `gorm:"column:first_name;not null" json:"first_name"` SecondName string `gorm:"column:second_name;not null" json:"second_name"` Username string `gorm:"index:username,unique;not null" json:"username"` Password string `gorm:"column:password; not null" json:"password"` Phone *string `gorm:"index:phone;unique" json:"phone"` FirebaseToken string `gorm:"column:firebase_token" json:"firebase_token"` }
func (*User) CheckPassword ¶
func (*User) HashPassword ¶
Click to show internal directories.
Click to hide internal directories.