userhandler

package
v0.0.0-...-e8a9512 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserHandler

func NewUserHandler(cfg *config.Config, service userservice.UserService, jwtHelper helper.JWTHelper) handler.Handler

Types

type UpdateUserProfileRequest

type UpdateUserProfileRequest struct {
	Email       string `json:"email"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	PhoneNumber string `json:"phone_number"`
}

type UserProfile

type UserProfile struct {
	UserID      uint64 `json:"user_id"`
	Email       string `json:"email"`
	PhoneNumber string `json:"phone"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL