Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct { UserID int `json:"user_id" gorm:"association_foreignkey:id"` UserEmail string `json:"user_email"` About string `json:"about,omitempty"` }
Profile of user
type User ¶
type User struct { ID int `json:"id" gorm:"not null;primary key"` Password string `sql:"-" json:"-"` Email string `gorm:"not null;unique" json:"email"` EncryptedPassword string `json:"encrypted_password,omitempty"` JwtToken string `sql:"jwt_token" json:"-"` }
User a struct of user info
func (*User) BeforeCreate ¶
BeforeCreate a func for create hashed passw
func (*User) ComparePassword ¶
ComparePassword ...
Click to show internal directories.
Click to hide internal directories.