Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminUpdateUser ¶
type AdminUpdateUser struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
IsAdmin string `json:"is_admin"`
IsActive string `json:"is_active"`
}
for admin user
type LoginRequest ¶
type LoginResponse ¶
type RegisterUser ¶
type RegisterUser struct {
ID int `json:"id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"password"`
IsAdmin string `json:"is_admin"`
IsActive string `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastLogin time.Time `json:"last_login"`
}
for regestering new users
func RegisterNewUser ¶
func RegisterNewUser(firstName, lastName, username, email, password string) (*RegisterUser, error)
type TokenMetaData ¶
type TokenMetaData struct {
ID int `json:"id"`
}
type UpdateUser ¶
type User ¶
type User struct {
ID int `json:"id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"-"`
IsAdmin string `json:"is_admin"`
IsActive string `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastLogin time.Time `json:"last_login"`
}
Click to show internal directories.
Click to hide internal directories.