Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLevel ¶
type AccessLevel int
const ( Admin AccessLevel = 1000 Passenger AccessLevel = 10 )
type RefreshTokenFrom ¶
type RefreshTokenFrom struct {
RefreshToken string `json:"refresh_token" binding:"required"`
}
type User ¶
type User struct { ID int64 `json:"id" db:"id"` FirstName string `json:"first_name" db:"first_name"` LastName string `json:"last_name" db:"last_name"` Email string `json:"email" db:"email"` HomeLocationID null.Int `json:"home_location_id" db:"home_location_id"` WorkLocationID null.Int `json:"work_location_id" db:"work_location_id"` Password string `json:"-" db:"password"` Access AccessLevel `json:"-" db:"access_level"` LastLogin null.Time `json:"last_login" db:"last_login"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` }
type UserLoginForm ¶
type UserRegisterForm ¶
type UserRegisterForm struct { FirstName string `json:"first_name" binding:"required"` LastName string `json:"last_name" binding:"required"` Email string `json:"email" binding:"required"` Password string `json:"password" binding:"required"` HomeLocationID null.Int `json:"home_location_id"` WorkLocationID null.Int `json:"work_location_id"` }
type UserServiceProvider ¶
Click to show internal directories.
Click to hide internal directories.