Documentation ¶
Index ¶
Constants ¶
View Source
const ( ADMIN_ROLE_ID = 1 DRIVER_ROLE_ID = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Id uint `json:"id" db:"user_id"` FirstName string `json:"first_name" db:"first_name"` LastName string `json:"last_name" db:"last_name"` Email string `json:"email" db:"email"` Password string `json:"password" db:"password"` RoleId uint `json:"role_id" db:"role_id"` }
func (*User) HashPassword ¶
func (User) MarshalJSON ¶
func (*User) ValidatePassword ¶
Click to show internal directories.
Click to hide internal directories.