Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func ConnectDataBase ¶
func ConnectDataBase()
func VerifyPassword ¶
Types ¶
type User ¶
type User struct { gorm.Model FirstName string `json:"first_name" binding:"required"` LastName string `json:"last_name" binding:"required"` Email string `json:"email" binding:"required" gorm:"unique"` Password string `json:"password" binding:"required"` IsAmbassador bool `json:"-"` }
func GetUserByID ¶
func (*User) BeforeSave ¶
func (*User) PrepareGive ¶
func (user *User) PrepareGive()
Click to show internal directories.
Click to hide internal directories.