Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCode = errors.New("Case statement in code is not correct.") ErrNoResult = errors.New("Result not found.") )
Functions ¶
func UserCreate ¶
UserCreate creates user
Types ¶
type User ¶
type User struct {
Id uint32 `db:"id"`
First_name string `db:"first_name"`
Last_name string `db:"last_name"`
Email string `db:"email"`
Password string `db:"password"`
Status_id uint8 `db:"status_id"`
Created_at time.Time `db:"created_at"`
Updated_at time.Time `db:"updated_at"`
Deleted uint8 `db:"deleted"`
}
User table contains the information for each user
func UserByEmail ¶
UserByEmail gets user information from email
func UserIdByEmail ¶
UserIdByEmail gets user id from email
Click to show internal directories.
Click to hide internal directories.